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>
This commit is contained in:
1 parent
8d456442e6
commit
7398e590e6
15 files changed
+823
-55
No files matched your search
@@ -0,0 +1,31 @@
|
||||
# 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
|
||||
Reference in new issue
Block a user