Skip to content

fix(CI): stop re-uploading release assets to already-published releases - #18

Merged
almostintuitive merged 1 commit into
mainfrom
fix/release-assets-immutable-conflict
Aug 19, 2026
Merged

fix(CI): stop re-uploading release assets to already-published releases#18
almostintuitive merged 1 commit into
mainfrom
fix/release-assets-immutable-conflict

Conversation

@almostintuitive

Copy link
Copy Markdown
Contributor

Summary

  • ci.yml's release job already builds every OS/arch binary and publishes the GitHub release on tag push.
  • release-assets.yml also triggers on release: published, rebuilding the same binaries and trying to upload them again — which GitHub now rejects once a release is published ("Cannot upload asset ... to an immutable release"), as seen in run #32262281202.
  • The only part of release-assets.yml that isn't redundant is the README release-link update (added in feature(CI): update release workflow to refresh README asset links #15), so this trims the workflow down to just that.

Test plan

  • Push a new tag (or trigger workflow_dispatch with an existing tag) and confirm release-assets.yml only updates README links, without attempting a duplicate asset upload
  • Confirm ci.yml's release job still publishes assets successfully

ci.yml already builds and publishes every binary when a version tag is
pushed. release-assets.yml's `release: published` trigger then fired
again and tried to rebuild and re-upload the same assets, which
GitHub now rejects with "Cannot upload asset ... to an immutable
release" once a release is published. Trim release-assets.yml down to
just the README link update it's actually needed for.
@almostintuitive
almostintuitive merged commit f7dc98a into main Aug 19, 2026
10 checks passed
@almostintuitive
almostintuitive deleted the fix/release-assets-immutable-conflict branch August 19, 2026 14:24
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