Skip to content

Commit 521291d

Browse files
committed
update release workflow to use new actions
1 parent 30cd51f commit 521291d

File tree

1 file changed

+4
-28
lines changed

1 file changed

+4
-28
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,11 @@ jobs:
1717
steps:
1818
- uses: actions/checkout@v3
1919

20-
- uses: actions-rs/toolchain@v1
20+
- uses: dtolnay/rust-toolchain@master
2121
with:
22-
profile: minimal
2322
toolchain: nightly
24-
default: true
2523

26-
- uses: actions/cache@v3
27-
with:
28-
path: |
29-
~/.cargo/bin
30-
~/.cargo/registry/index
31-
~/.cargo/registry/cache
32-
~/.cargo/git/db
33-
./target
34-
key: ${{ runner.os }}-cargo-build-${{ hashFiles('**/Cargo.lock') }}
35-
restore-keys: |
36-
${{ runner.os }}-cargo-build-
24+
- uses: Swatinem/rust-cache@v2
3725

3826
- run: cargo publish
3927
env:
@@ -72,23 +60,11 @@ jobs:
7260
with:
7361
repo-token: ${{ secrets.CUSTOM_GITHUB_TOKEN }}
7462

75-
- uses: actions-rs/toolchain@v1
63+
- uses: dtolnay/rust-toolchain@master
7664
with:
77-
profile: minimal
7865
toolchain: nightly
79-
default: true
8066

81-
- uses: actions/cache@v3
82-
with:
83-
path: |
84-
~/.cargo/bin
85-
~/.cargo/registry/index
86-
~/.cargo/registry/cache
87-
~/.cargo/git/db
88-
./target
89-
key: ${{ runner.os }}-cargo-build-${{ hashFiles('**/Cargo.lock') }}
90-
restore-keys: |
91-
${{ runner.os }}-cargo-build-
67+
- uses: Swatinem/rust-cache@v2
9268

9369
- run: task build:release
9470

0 commit comments

Comments
 (0)