Skip to content

fix(ci): make PyPI publish idempotent with --check-url#171

Merged
mmacpherson merged 1 commit into
mainfrom
fix/idempotent-publish
Jun 12, 2026
Merged

fix(ci): make PyPI publish idempotent with --check-url#171
mmacpherson merged 1 commit into
mainfrom
fix/idempotent-publish

Conversation

@mmacpherson

Copy link
Copy Markdown
Owner

A release-created event triggers publish.yml; if the version is already on PyPI (manual dispatch first, or a re-run), uv publish fails on duplicate files before the asset-upload steps run. --check-url makes uv skip files already present on the index. Needed to create the v0.5.0 GitHub release without a red run, since 0.5.0 is already live on PyPI.

🤖 Generated with Claude Code

A GitHub release creation triggers this workflow; when the package was
already published via manual dispatch, the duplicate upload failed the
release-event run before it could attach assets.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@mmacpherson mmacpherson merged commit 8a3e2b8 into main Jun 12, 2026
@mmacpherson mmacpherson deleted the fix/idempotent-publish branch June 12, 2026 05:54
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