Skip to content

ci: make publish idempotent for re-runs#10

Merged
markgeejw merged 1 commit into
mainfrom
ci/idempotent-publish
Jul 20, 2026
Merged

ci: make publish idempotent for re-runs#10
markgeejw merged 1 commit into
mainfrom
ci/idempotent-publish

Conversation

@markgeejw

Copy link
Copy Markdown
Collaborator

PyPI publish for v0.16.1 succeeded via OIDC, but conda upload failed (invalid ANACONDA_TOKEN) and github-release was skipped. Re-running would fail because the tag + PyPI version now exist.

Makes the publish re-runnable:

  • tag step skips creation if the tag exists,
  • PyPI skip-existing: true,
  • GitHub release uploads with --clobber if the release already exists.

Tag step skips if the tag already exists; PyPI publish uses skip-existing;
GitHub release uploads assets with --clobber if the release already exists.
Lets the publish be safely re-dispatched (e.g. after a conda-token fix) without
failing on the already-created tag / already-published version.
@markgeejw
markgeejw merged commit b6d9472 into main Jul 20, 2026
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