File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change 5
5
branches :
6
6
- main
7
7
8
+ permissions :
9
+ contents : read
10
+
8
11
concurrency :
9
12
group : ${{ github.workflow }}-${{ github.ref }}
10
13
cancel-in-progress : false
@@ -13,21 +16,17 @@ jobs:
13
16
website-build :
14
17
name : Build Website
15
18
runs-on : ubuntu-latest
19
+
16
20
steps :
17
21
- uses : actions/checkout@v4
18
22
with :
19
23
fetch-depth : 0
20
24
21
25
- name : Set up Rust toolchain
22
- run : |
23
- rustup toolchain install stable --no-self-update --profile minimal
24
- rustup target add wasm32-unknown-unknown
25
-
26
- - name : Set up Rust cache
27
- uses : swatinem/rust-cache@v2
26
+ uses : actions-rust-lang/setup-rust-toolchain@v1
28
27
with :
29
- cache-on-failure : true
30
- save-if : ${{ github.ref == 'refs/heads/main' }}
28
+ components : clippy, rustfmt
29
+ target : wasm32-unknown-unknown
31
30
32
31
- name : Install Cargo Binary Install
33
32
uses : cargo-bins/cargo-binstall@main
@@ -54,10 +53,12 @@ jobs:
54
53
needs : website-build
55
54
if : github.ref == 'refs/heads/main'
56
55
runs-on : ubuntu-latest
56
+
57
57
permissions :
58
58
contents : read
59
59
pages : write
60
60
id-token : write
61
+
61
62
steps :
62
63
- uses : actions/checkout@v4
63
64
with :
You can’t perform that action at this time.
0 commit comments