Skip to content

Replace rolling canary release each run for immutable-release repos#30

Merged
d4rken merged 1 commit into
mainfrom
canary-immutable-replace
May 20, 2026
Merged

Replace rolling canary release each run for immutable-release repos#30
d4rken merged 1 commit into
mainfrom
canary-immutable-replace

Conversation

@d4rken
Copy link
Copy Markdown
Member

@d4rken d4rken commented May 20, 2026

Summary

  • This repo has GitHub's immutable-releases feature enabled, so gh release edit and asset --clobber upload are rejected after the first publish
  • Tested directly: gh release delete and gh api DELETE refs/tags/canary both succeed against the immutable canary release
  • Switch the workflow's two final steps to a single delete-then-create step that re-publishes the canary release on every run
  • Also inlines a HEAD guard immediately before the delete-create window so a stale rerun cannot wipe a newer canary

Test plan

  • YAML parses
  • Next push to main produces a fresh canary GitHub release at the new SHA
  • Subsequent push deletes that release/tag and creates a new one at the latest SHA

@d4rken d4rken merged commit 352781e into main May 20, 2026
5 checks passed
@d4rken d4rken deleted the canary-immutable-replace branch May 20, 2026 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant