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:
parent
fea1d93da1
commit
7964697665
1 changed files with 2 additions and 1 deletions
3
.github/workflows/smithflix-build.yaml
vendored
3
.github/workflows/smithflix-build.yaml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue