Skip to content

(release): upload release assets per-file with retries - #49

Merged
JeanBaptisteRenard merged 2 commits into
mainfrom
fix/release-publish-retry
Jun 10, 2026
Merged

(release): upload release assets per-file with retries#49
JeanBaptisteRenard merged 2 commits into
mainfrom
fix/release-publish-retry

Conversation

@JeanBaptisteRenard

Copy link
Copy Markdown
Collaborator

Why

The publish job uploads all artifacts in one shot (gh release create ... dist/*). An intermittent 401 from uploads.github.com on a single asset (often a .blockmap) aborts the whole command, leaving a partial release — hit on v0.0.32 (1/18 assets).

What

  • Create the draft once (tolerate already-exists on re-run).
  • Upload each asset individually with up to 5 retries (--clobber), so a transient per-asset 401 no longer aborts the batch.

publish only runs on tag pushes, so this can't affect PR CI.

Generated with Claude Code

A single whole-batch `gh release create ... dist/*` aborts entirely when
uploads.github.com returns an intermittent 401 on one asset (typically a
.blockmap), leaving a partial release that needs manual recovery (hit on
v0.0.32). Create the draft once (tolerating an existing draft on re-run),
then upload each asset individually with up to 5 retries.
@JeanBaptisteRenard
JeanBaptisteRenard merged commit b0c506b into main Jun 10, 2026
10 of 12 checks passed
@JeanBaptisteRenard
JeanBaptisteRenard deleted the fix/release-publish-retry branch June 10, 2026 16:19
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