File tree 1 file changed +7
-13
lines changed
1 file changed +7
-13
lines changed Original file line number Diff line number Diff line change 3
3
push :
4
4
branches :
5
5
- main
6
-
7
6
jobs :
8
7
publish :
9
8
runs-on : ubuntu-latest
@@ -14,24 +13,19 @@ jobs:
14
13
steps :
15
14
- name : Checkout sources
16
15
uses : actions/checkout@v4
17
- - name : Setup mdbook
18
- uses : peaceiris/actions-mdbook@v1
19
- with :
20
- mdbook-version : " latest"
21
- - name : Setup mdbook-mermaid
22
- uses : magicgh/mdbook-mermaid-action@v1
16
+ - name : Install Rust stable toolchain
17
+ uses : dtolnay/rust-toolchain@stable
18
+ - uses : Swatinem/rust-cache@v2
23
19
with :
24
- version : " latest "
25
- - name : Install mdbook-template
20
+ cache-on-failure : true
21
+ - name : Setup mdbook
26
22
run : |
27
- mkdir mdbook-template
28
- curl -sSL https://github.com/sgoudham/mdbook-template/releases/latest/download/mdbook-template-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=./mdbook-template
29
- echo `pwd`/mdbook-template >> $GITHUB_PATH
23
+ cargo install mdbook mdbook-mermaid mdbook-template
30
24
- name : Build book
31
25
working-directory : ./book
32
26
run : mdbook build
33
27
- name : Deploy
34
- uses : peaceiris/actions-gh-pages@v3
28
+ uses : peaceiris/actions-gh-pages@v4
35
29
if : ${{ github.ref == 'refs/heads/main' }}
36
30
with :
37
31
github_token : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments