Skip to content

Commit 2f81467

Browse files
committed
fix action
authentication fix authentication fix - token in correct place fix cargo release installation checkout
1 parent b7be835 commit 2f81467

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

.github/workflows/rust.yml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,13 @@ jobs:
3131
permissions:
3232
id-token: write
3333
steps:
34-
- name: Install cargo binstall
35-
uses: cargo-bins/cargo-binstall@main
36-
- name: cargo-release Cache
37-
id: cargo_release_cache
38-
uses: actions/cache@v3
34+
- uses: actions/checkout@v3
35+
- name: install cargo-release
36+
uses: taiki-e/install-action@v2
3937
with:
40-
path: ~/.cargo/bin/cargo-release
41-
key: ${{ runner.os }}-cargo-release
42-
- name: Install cargo release
43-
if: steps.cargo_release_cache.outputs.cache-hit != 'true'
44-
run: cargo binstall cargo-release
38+
tool: cargo-release
4539
- name: cargo login
46-
run: cargo login
40+
run: cargo login ${{ secrets.CARGO_REGISTRY_TOKEN }}
4741
- name: "cargo release publish"
4842
run: |-
4943
cargo release \

0 commit comments

Comments
 (0)