Skip to content

Commit 0685520

Browse files
authored
Merge pull request #9 from jsturtevant/use-trusted-publishing
Use Cargo trusted publish
2 parents b05247b + 02776aa commit 0685520

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/publish.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,16 @@ jobs:
2929
name: Publish to crates.io
3030
needs: [ci, validate]
3131
runs-on: ubuntu-latest
32+
permissions:
33+
id-token: write
3234
steps:
3335
- uses: actions/checkout@v4
34-
- uses: actions-rust-lang/setup-rust-toolchain@v1
36+
- uses: rust-lang/crates-io-auth-action@v1
37+
id: auth
3538
- name: Publish
3639
run: cargo publish
3740
env:
38-
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_PUBLISH_TOKEN }}
41+
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}
3942

4043
release:
4144
name: Create GitHub Release

0 commit comments

Comments
 (0)