Skip to content

Commit 41ca39d

Browse files
Use trusted publishing with crates.io (#99)
1 parent df32378 commit 41ca39d

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/publish-crate.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,15 @@ on:
77
jobs:
88
crate:
99
runs-on: ubuntu-latest
10+
environment: release
11+
permissions:
12+
id-token: write
1013
steps:
1114
- uses: actions/checkout@v6
15+
- name: Install Rust toolchain
16+
uses: dtolnay/rust-toolchain@stable
17+
- id: auth
18+
uses: rust-lang/crates-io-auth-action@v1
1219
- run: cargo publish
1320
env:
14-
CARGO_REGISTRY_TOKEN: ${{ secrets.DIVVIUP_GITHUB_AUTOMATION_CRATES_IO_API_TOKEN }}
21+
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}

0 commit comments

Comments
 (0)