You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ci(nightly): move the tag and edit the release in place, instead of delete+recreate (#726)
Retargeting the nightly tag (via the Git Data API - no checkout needed)
is what actually moves the release, since a release points at whatever
commit its tag currently resolves to, not a fixed SHA recorded on the
release object. Editing the release in place then just refreshes
title/notes; assets are swapped explicitly (delete what's there, upload
this run's builds) since edit doesn't touch them and filenames embed the
commit hash, so old ones are never overwritten by new uploads.
Besides being simpler than delete+recreate, this means no new 'release
published' notification goes out on every push to master: a bare tag
move isn't a notified event, and editing an already-published release
doesn't re-fire its original publish notification. (The prior
delete+recreate approach relied on --prerelease being excluded from
most watchers' default notification preferences instead.)
Also drops the full commit SHA from the release title - a short hash
(7 chars) is enough there; the full SHA stays in the notes and in
every asset's own filename.
Claude-Session: https://claude.ai/code/session_01V3dYofgD6GW7V21k6Mzfud
Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
--notes "Automated build from master@${{ github.sha }}. Not a stable release - replaced on every push to master. The launcher's own version display and each asset's filename both embed this same commit hash, so a bug report always maps back to an exact commit."
NOTES: "Automated build from master@${{ github.sha }}. Not a stable release - replaced on every push to master. The launcher's own version display and each asset's filename both embed the full commit hash, so a bug report always maps back to an exact commit."
89
+
run: |
90
+
if gh release view nightly --repo ${{ github.repository }} >/dev/null 2>&1; then
91
+
# `edit` doesn't touch assets - the tag move above already repointed this release at
92
+
# the right commit, so just refresh its title/notes, then swap the assets: delete
93
+
# what's there (filenames embed the commit hash, so old ones are never overwritten by
94
+
# this run's uploads) and upload this run's builds.
0 commit comments