CI: keep the web app release when pruning old app releases

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011TdkZRTCV92L7gbQX2Z5Ay
This commit is contained in:
Claude 2026-10-11 12:33:01 -04:00
parent fea1d93da1
commit 7964697665
No known key found for this signature in database

View file

@ -110,7 +110,8 @@ jobs:
gh release create "v${version}" smithflix.apk version.json \
-R "$RELEASES_REPO" --title "Smithflix ${version}" --notes "$notes" --latest
# keep the 5 newest releases
gh release list -R "$RELEASES_REPO" --limit 100 --json tagName -q '.[5:][].tagName' \
# (only app versions v1.0.x; the "web" release belongs to the web app)
gh release list -R "$RELEASES_REPO" --limit 100 --json tagName -q '[.[] | select(.tagName | startswith("v"))][5:][].tagName' \
| xargs -r -n1 gh release delete -R "$RELEASES_REPO" --yes --cleanup-tag
- name: Keep a copy with the run