Skip to content

Commit 61168b4

Browse files
authored
Merge pull request #77 from arielb1/trusted-publishing
ci: set up trusted publishing
2 parents 8bec302 + 97f0e2b commit 61168b4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ jobs:
1414
if: github.repository_owner == 'async-profiler'
1515
name: Release-plz release
1616
runs-on: ubuntu-latest
17+
environment: release
1718

1819
steps:
1920
- name: Checkout repository
@@ -22,10 +23,13 @@ jobs:
2223
fetch-depth: 0
2324
- name: Install Rust toolchain
2425
uses: dtolnay/rust-toolchain@stable
26+
- name: Authenticate to crates.io
27+
uses: rust-lang/crates-io-auth-action@v1
28+
id: auth
2529
- name: Run release-plz
2630
uses: release-plz/[email protected]
2731
with:
2832
command: release
2933
env:
3034
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31-
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
35+
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}

0 commit comments

Comments
 (0)