Skip to content

Commit a4b76bd

Browse files
committed
Try to enable trusted publishing to crates.io
This is the last big thing I wanted to do before cutting a new release.
1 parent 9629cdc commit a4b76bd

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/release-process.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,8 @@ jobs:
166166
if: ${{ github.ref == 'refs/heads/start-release' }}
167167
needs: merge-release
168168
runs-on: ubuntu-24.04
169+
permissions:
170+
id-token: write
169171
steps:
170172
- name: Checkout
171173
uses: actions/checkout@v4
@@ -175,7 +177,10 @@ jobs:
175177
rustup toolchain install stable
176178
rustup default stable
177179
rustc --version
180+
- name: Authenticate to Crates.io
181+
id: crates-io-auth
182+
uses: rust-lang/crates-io-auth-action@v1
178183
- name: Publish
179184
run: cargo publish
180185
env:
181-
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
186+
CARGO_REGISTRY_TOKEN: ${{ steps.crates-io-auth.outputs.token }}

0 commit comments

Comments
 (0)