GPL-3.0-or-later, Gitea CI and release pipeline
CI / build (push) Successful in 15s
Release / release (push) Successful in 17s

- 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:
nikrozmanandClaude Opus 5.5 committed 2026-10-30 00:30:07 +01:00
1 parent 8d456442e6
commit 7398e590e6
15 files changed
+823 -55

No files matched your search

+26 -6
View File
@@ -1,5 +1,8 @@
# Lights Off Timer — Jellyfin sleep timer that turns off your Home Assistant lights
[![CI](https://git.piskot.si/nikrozman/jellyfin-lights-out-ha/actions/workflows/ci.yml/badge.svg)](https://git.piskot.si/nikrozman/jellyfin-lights-out-ha/actions)
[![License: GPL-3.0-or-later](https://img.shields.io/badge/license-GPL--3.0--or--later-blue)](LICENSE)
A Jellyfin plugin that adds a **sleep-timer button next to the volume control** in the web player.
Pick *End of this episode/movie* (the default) or a number of minutes; when playback stops,
the plugin tells **Home Assistant**, which turns the lights off after a cooldown (15 minutes by default).
@@ -61,13 +64,30 @@ The webhook id is the only secret: anyone who knows it can trigger the automatio
## Build / release
Only Docker is needed:
Every push and pull request is built by the [CI workflow](.gitea/workflows/ci.yml).
To release, push an annotated tag; its message becomes the release notes:
```sh
./build.sh 1.0.3.0 "What changed"
git tag -a v1.0.3.0 -m "What changed"
git push origin v1.0.3.0
```
This builds in `mcr.microsoft.com/dotnet/sdk:10.0` against the `Jellyfin.Controller` 12.2.0 NuGet package,
writes `dist/lightsofftimer_<version>.zip` and adds the version (with its MD5 checksum) to `manifest.json`.
Commit and push `dist/` and `manifest.json`; Jellyfin servers using the repository will offer the update.
For another Jellyfin version, change the package versions in the `.csproj` and run with `TARGET_ABI=x.y.z.0`.
The [release workflow](.gitea/workflows/release.yml) builds that version against the
`Jellyfin.Controller` 12.2.0 NuGet package, creates a [release](https://git.piskot.si/nikrozman/jellyfin-lights-out-ha/releases)
with `lightsofftimer_<version>.zip` attached, and adds the version (download URL + MD5) to `manifest.json`,
so every Jellyfin server using the repository is offered the update.
Local test build (needs only Docker): `./build.sh` → `out/lightsofftimer_dev.zip`.
For another Jellyfin version, change the package versions in the `.csproj` and `TARGET_ABI` in the release workflow.
## License
Copyright © 2026 Nik Rozman and contributors.
This program is free software: you can redistribute it and/or modify it under the terms of the
GNU General Public License as published by the Free Software Foundation, either version 3 of the License,
or (at your option) any later version. See [LICENSE](LICENSE).
Contributions are welcome under the same license.