Skip to content

Commit 6a4c4f4

Browse files
authored
ci: use trusted publishing in publish.yml (#1537)
1 parent 0c9e396 commit 6a4c4f4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ jobs:
2121
fetch-depth: 0
2222
- name: Install Rust toolchain
2323
uses: dtolnay/rust-toolchain@stable
24+
- uses: rust-lang/crates-io-auth-action@v1
25+
id: auth
2426
- name: Run release-plz
2527
uses: MarcoIeni/[email protected]
26-
with:
27-
command: release
2828
env:
2929
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30-
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
30+
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}

0 commit comments

Comments
 (0)