Files
jellyfin-lights-out-ha/.gitea/workflows/ci.yml
T
nikrozmanandClaude Opus 5.5 7398e590e6
CI / build (push) Successful in 15s
Release / release (push) Successful in 17s
GPL-3.0-or-later, Gitea CI and release pipeline
- License the project under GPL-3.0-or-later (LICENSE + SPDX headers).
- CI workflow builds every push and pull request and checks manifest.json.
- Release workflow: an annotated v* tag builds that version, creates a
  Gitea release with the zip attached and adds it to manifest.json.
- Release zips now live in Gitea releases instead of dist/; build.sh is a
  local test build only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 00:30:07 +01:00

32 lines
1.0 KiB
YAML

# Build on every push and pull request. Runs in the .NET 10 SDK image (runner label "dotnet").
name: CI
on:
push:
branches: [master]
pull_request:
jobs:
build:
runs-on: dotnet
steps:
- name: Checkout
run: |
git init -q .
git remote add origin "${{ gitea.server_url }}/${{ gitea.repository }}.git"
git fetch -q --depth 1 origin "${{ gitea.ref }}"
git checkout -q FETCH_HEAD
git log --oneline -1
- name: Build
run: |
dotnet publish src/Jellyfin.Plugin.LightsOffTimer/Jellyfin.Plugin.LightsOffTimer.csproj \
-c Release -o out --nologo
ls -l out/Jellyfin.Plugin.LightsOffTimer.dll
- name: Check manifest.json
run: |
apt-get -qq update >/dev/null && apt-get -qq install -y jq >/dev/null
jq -e '.[0].guid and .[0].name and (.[0].versions | type == "array")' manifest.json >/dev/null
jq -r '.[0].versions[] | "\(.version) abi \(.targetAbi) \(.sourceUrl)"' manifest.json