Skip to content

Add crates.io trusted publishing workflow - #15

Merged
bancek merged 1 commit into
masterfrom
feature/gh-actions-publish
Oct 19, 2026
Merged

bancek merged 1 commit into
masterfrom
feature/gh-actions-publish

Conversation

@bancek

@bancek bancek commented Oct 19, 2026

Copy link
Copy Markdown
Owner

Publishes the crate on v* tag pushes using crates.io trusted publishing (OIDC).

  • Runs in the publish environment with id-token: write
  • Exchanges the GitHub OIDC token for a short-lived crates.io token via rust-lang/crates-io-auth-action
  • Verifies the Cargo.toml version matches the pushed tag before publishing
  • No long-lived token secrets

@bancek
bancek merged commit 1a4a168 into master Oct 19, 2026
1 check 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