From 8f9916e0356ddc9c7fa2c13365a7e988826f5308 Mon Sep 17 00:00:00 2001 From: Nik Rozman Date: Fri, 30 Oct 2026 00:33:18 +0100 Subject: [PATCH] Release workflow: use .zip release download URLs (Jellyfin rejects /attachments/ URLs) Co-Authored-By: Claude Opus 5.5 --- .gitea/workflows/release.yml | 6 +++++- manifest.json | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index e3e70a9..e40f6e7 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -54,7 +54,11 @@ jobs: --arg abi "$TARGET_ABI" --arg md5 "$(cat md5.txt)" \ '{tag_name: $tag, name: $name, body: ($notes + "\n\n---\nJellyfin targetAbi `" + $abi + "` ยท MD5 `" + $md5 + "`")}') ID=$(curl -fsS -X POST -H "Authorization: token $TOKEN" -H "Content-Type: application/json" -d "$BODY" "$API/releases" | jq -r .id) - URL=$(curl -fsS -X POST -H "Authorization: token $TOKEN" -F "attachment=@$ZIP" "$API/releases/$ID/assets?name=$ZIP" | jq -r .browser_download_url) + curl -fsS -X POST -H "Authorization: token $TOKEN" -F "attachment=@$ZIP" "$API/releases/$ID/assets?name=$ZIP" >/dev/null + # Jellyfin only installs from URLs ending in .zip, so use the release download path + # (the API's browser_download_url is /attachments/). + URL="${{ gitea.server_url }}/${{ gitea.repository }}/releases/download/${{ gitea.ref_name }}/$ZIP" + curl -fsSI "$URL" >/dev/null echo "release $ID asset $URL" echo "$URL" > asset_url.txt diff --git a/manifest.json b/manifest.json index a24f4a6..e9b2041 100644 --- a/manifest.json +++ b/manifest.json @@ -11,7 +11,7 @@ "version": "1.0.2.0", "changelog": "First public release.\n\n- Sleep-timer button next to the volume control in Jellyfin Web: end of this episode/movie (default) or 15/30/45/60/90 minutes.\n- Stops the next autoplayed episode when the timed one ends.\n- Calls a Home Assistant webhook (\"stopped\" / \"started\") so HA can turn the lights off after a cooldown.\n- Builds from the Jellyfin.Controller 12.2.0 NuGet package; licensed GPL-3.0-or-later.", "targetAbi": "12.2.0.0", - "sourceUrl": "https://git.piskot.si/attachments/689b19b6-4993-4a8c-bbde-eb96b6250492", + "sourceUrl": "https://git.piskot.si/nikrozman/jellyfin-lights-out-ha/releases/download/v1.0.2.0/lightsofftimer_1.0.2.0.zip", "checksum": "baf4d3b0c76cb5b4b115637e124bc1b6", "timestamp": "2026-10-29T23:31:10Z" }