Skip to content

Commit c93129d

Browse files
authored
ci: use crates.io trusted publishing (#354)
1 parent 3b884ed commit c93129d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: Release-plz
33
permissions:
44
pull-requests: write
55
contents: write
6+
id-token: write
67

78
on:
89
push:
@@ -22,8 +23,12 @@ jobs:
2223
- name: Install Rust toolchain
2324
uses: dtolnay/rust-toolchain@stable
2425

26+
- name: Authenticate with crates.io
27+
uses: rust-lang/crates-io-auth-action@v1
28+
id: auth
29+
2530
- name: Run release-plz
2631
uses: MarcoIeni/[email protected]
2732
env:
2833
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29-
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
34+
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}

0 commit comments

Comments
 (0)