File tree 2 files changed +6
-17
lines changed 2 files changed +6
-17
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -2,18 +2,14 @@ name: CI
2
2
3
3
on :
4
4
push :
5
- branches : [ staging, trying, master ]
6
5
pull_request :
7
6
8
7
jobs :
9
8
build :
10
- runs-on : ubuntu-20.04
9
+ runs-on : ubuntu-latest
11
10
steps :
12
- - uses : actions/checkout@v2
13
- - uses : actions-rs/toolchain@v1
14
- with :
15
- profile : minimal
16
- toolchain : stable
11
+ - uses : actions/checkout@v4
12
+ - uses : dtolnay/rust-toolchain@stable
17
13
18
14
- name : Install Python dependencies
19
15
run : |
@@ -22,17 +18,14 @@ jobs:
22
18
run : echo "~/.local/bin" >> $GITHUB_PATH
23
19
24
20
- name : Cache Cargo installed binaries
25
- uses : actions/cache@v1
21
+ uses : actions/cache@v4
26
22
id : cache-cargo
27
23
with :
28
24
path : ~/cargo-bin
29
25
key : cache-cargo
30
26
- name : Install mdbook
31
27
if : steps.cache-cargo.outputs.cache-hit != 'true'
32
- uses :
actions-rs/[email protected]
33
- with :
34
- crate : mdbook
35
- version : latest
28
+ run : cargo install mdbook
36
29
- name : Copy mdbook to cache directory
37
30
if : steps.cache-cargo.outputs.cache-hit != 'true'
38
31
run : |
48
41
49
42
- name : Deploy book
50
43
if : ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
51
- uses : peaceiris/actions-gh-pages@v3
44
+ uses : peaceiris/actions-gh-pages@v4
52
45
with :
53
46
github_token : ${{ secrets.GITHUB_TOKEN }}
54
47
publish_dir : public
You can’t perform that action at this time.
0 commit comments