Release workflow: use .zip release download URLs (Jellyfin rejects /attachments/ URLs)
CI / build (push) Successful in 17s
CI / build (push) Successful in 17s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
0a7aaebfff
commit
8f9916e035
2 files changed
+6
-2
No files matched your search
@@ -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/<uuid>).
|
||||
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
|
||||
|
||||
|
||||
+1
-1
@@ -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"
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user