Skip to content

Make GitHub Release publishing idempotent#11

Merged
Dezoff-max merged 1 commit into
mainfrom
codex/idempotent-release-workflow
Jul 12, 2026
Merged

Make GitHub Release publishing idempotent#11
Dezoff-max merged 1 commit into
mainfrom
codex/idempotent-release-workflow

Conversation

@Dezoff-max

@Dezoff-max Dezoff-max commented Jul 12, 2026

Copy link
Copy Markdown
Owner

Root cause

The v0.3.0 workflow packaged successfully, then failed because gh release create was called after the same tag release had already been published.

Fix

  • create the release only when it does not exist
  • otherwise replace matching ZIP/checksum assets with gh release upload --clobber
  • preserve the existing release title and English notes

Verification

  • workflow YAML parse passed
  • embedded publish shell passed bash -n
  • stubbed missing-release branch selected gh release create
  • exact existing-release branch refreshed v0.3.0 successfully
  • clean downloaded SHA-256 verification passed
  • release metadata and asset names remained correct

@Dezoff-max
Dezoff-max merged commit 4084109 into main Jul 12, 2026
3 checks passed
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