Skip to content

ci(release): make crates.io publish idempotent - #4

Merged
igorls merged 1 commit into
mainfrom
ci/idempotent-publish
May 31, 2026
Merged

ci(release): make crates.io publish idempotent#4
igorls merged 1 commit into
mainfrom
ci/idempotent-publish

Conversation

@igorls

@igorls igorls commented May 31, 2026

Copy link
Copy Markdown
Member

Follow-up so a tagged release run stays green even when the crate version was already published to crates.io manually (as happened for v0.2.0).

The crates-io job's publish step now:

  • publishes normally if the version isn't on crates.io yet;
  • skips (success) if cargo reports the version is already uploaded;
  • still fails on any other (genuine) publish error.

No effect on the binaries / GHCR jobs.

The crates.io publish step now skips gracefully when the version is already
uploaded (e.g. when a release was published manually before tagging), instead
of failing the release run. Genuine publish errors still fail the job.
@gemini-code-assist

Copy link
Copy Markdown

Note

Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported.

@igorls
igorls merged commit cc20c4b into main May 31, 2026
7 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