Skip to content

fix(release): avoid matrix race when creating the GitHub release#4

Merged
swperb merged 1 commit into
mainfrom
fix/release-race
Jun 15, 2026
Merged

fix(release): avoid matrix race when creating the GitHub release#4
swperb merged 1 commit into
mainfrom
fix/release-race

Conversation

@swperb

@swperb swperb commented Jun 15, 2026

Copy link
Copy Markdown
Owner

The v0.2.0 release workflow had both matrix build jobs try to create the release simultaneously — Linux won, macOS failed with tag_name already_exists and its binary didn't upload (I uploaded it manually to complete v0.2.0).

Fix: a single create-release job creates the release once (idempotent), then the build matrix only uploads assets (gh release upload --clobber). No race on future tags.

🤖 Generated with Claude Code

Both build jobs previously tried to create the release in parallel; the second
failed with "tag already exists" and its asset never uploaded. Now a single
create-release job runs first (idempotent), and the build matrix only uploads
assets via `gh release upload --clobber`.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@swperb swperb merged commit 7b8f880 into main Jun 15, 2026
5 checks passed
@swperb swperb deleted the fix/release-race branch June 15, 2026 04:31
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