Skip to content

Commit c152ca4

Browse files
authored
Merge pull request #61 from zvonkok/fetch-dry-run
release: Add OIDC
2 parents 3887542 + bace7e9 commit c152ca4

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
@@ -36,7 +36,10 @@ jobs:
3636
uses: dtolnay/rust-toolchain@e97e2d8cc328f1b50210efc529dca0028893a2d9
3737
with:
3838
toolchain: ${{ inputs.rust_toolchain }}
39-
39+
40+
- name: Authenticate to crates.io (OIDC)
41+
id: auth
42+
uses: rust-lang/crates-io-auth-action@e919bc7605cde86df457cf5b93c5e103838bd879
4043
- name: Derive version from Cargo.toml and create tag
4144
id: version
4245
shell: bash
@@ -57,6 +60,8 @@ jobs:
5760
# Make sure the crate is configured on crates.io with a GitHub publisher link.
5861
- name: Publish
5962
run: cargo publish
63+
env:
64+
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}
6065

6166
release:
6267
name: Create GitHub Release

0 commit comments

Comments
 (0)