We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent df32378 commit 41ca39dCopy full SHA for 41ca39d
.github/workflows/publish-crate.yml
@@ -7,8 +7,15 @@ on:
7
jobs:
8
crate:
9
runs-on: ubuntu-latest
10
+ environment: release
11
+ permissions:
12
+ id-token: write
13
steps:
14
- 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
19
- run: cargo publish
20
env:
- CARGO_REGISTRY_TOKEN: ${{ secrets.DIVVIUP_GITHUB_AUTOMATION_CRATES_IO_API_TOKEN }}
21
+ CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}
0 commit comments