Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions .github/workflows/crates-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
# Prerequisites (one-time, on crates.io):
# 1. Add deslicer-cli as a crate you maintain.
# 2. Configure Trusted Publishing for github.com/deslicer/cli (this workflow file).
# 3. No CARGO_REGISTRY_TOKEN secret is required — Cargo exchanges the GitHub OIDC
# token for a short-lived crates.io publish token automatically.
# 3. No CARGO_REGISTRY_TOKEN secret is required — rust-lang/crates-io-auth-action
# exchanges the GitHub OIDC token for a short-lived crates.io publish token.

name: Crates.io Publish

Expand Down Expand Up @@ -39,5 +39,11 @@ jobs:
exit 1
fi

- name: Publish to crates.io (Trusted Publishing / OIDC)
- name: Authenticate to crates.io (Trusted Publishing / OIDC)
id: auth
uses: rust-lang/crates-io-auth-action@bbd81622f20ce9e2dd9622e3218b975523e45bbe # v1.0.4

- name: Publish to crates.io
run: cargo publish -p deslicer-cli --locked
env:
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}
Loading