Update prerelease flag and rolling release
This commit is contained in:
parent
bde63a15e0
commit
e94399565c
1 changed files with 21 additions and 1 deletions
22
.github/workflows/nightly.yml
vendored
22
.github/workflows/nightly.yml
vendored
|
|
@ -134,7 +134,8 @@ jobs:
|
||||||
echo "Release $TAG already exists, updating metadata and assets..."
|
echo "Release $TAG already exists, updating metadata and assets..."
|
||||||
gh release edit "$TAG" \
|
gh release edit "$TAG" \
|
||||||
--title "$TITLE" \
|
--title "$TITLE" \
|
||||||
--notes "$NOTES"
|
--notes "$NOTES" \
|
||||||
|
--prerelease
|
||||||
gh release upload "$TAG" build/* --clobber
|
gh release upload "$TAG" build/* --clobber
|
||||||
else
|
else
|
||||||
echo "Creating new release $TAG..."
|
echo "Creating new release $TAG..."
|
||||||
|
|
@ -142,5 +143,24 @@ jobs:
|
||||||
--title "$TITLE" \
|
--title "$TITLE" \
|
||||||
--notes "$NOTES" \
|
--notes "$NOTES" \
|
||||||
--target "${{ github.sha }}" \
|
--target "${{ github.sha }}" \
|
||||||
|
--prerelease \
|
||||||
build/*
|
build/*
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo "Updating rolling 'nightly' release..."
|
||||||
|
gh release delete nightly --cleanup-tag -y >/dev/null 2>&1 || true
|
||||||
|
sleep 2
|
||||||
|
gh release create nightly \
|
||||||
|
--title "Nightly Build" \
|
||||||
|
--notes "$NOTES" \
|
||||||
|
--target "${{ github.sha }}" \
|
||||||
|
--prerelease \
|
||||||
|
build/*
|
||||||
|
|
||||||
|
echo "Cleaning up old nightly releases (keeping only the most recent)..."
|
||||||
|
gh release list --limit 100 --json tagName -q '.[].tagName | select(startswith("nightly-"))' | tail -n +2 | while read -r old_tag; do
|
||||||
|
if [ -n "$old_tag" ] && [ "$old_tag" != "$TAG" ]; then
|
||||||
|
echo "Deleting old nightly release: $old_tag"
|
||||||
|
gh release delete "$old_tag" --cleanup-tag -y || true
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue