Release workflow: use .zip release download URLs (Jellyfin rejects /attachments/ URLs)
CI / build (push) Successful in 17s

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
nikrozmanandClaude Opus 5.5 committed 2026-10-30 00:33:18 +01:00
1 parent 0a7aaebfff
commit 8f9916e035
2 files changed
+6 -2

No files matched your search

+5 -1
View File
@@ -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