File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -44,11 +44,11 @@ jobs:
44
44
runs-on : ubuntu-20.04
45
45
steps :
46
46
- uses : actions/checkout@v2
47
- - uses : actions-rs/toolchain@v1
48
- with :
49
- profile : minimal
50
47
- name : Install mdbook
51
- run : cargo install mdbook mdbook-toc
48
+ run : |
49
+ wget https://github.com/rust-lang/mdBook/releases/download/v0.4.21/mdbook-v0.4.21-x86_64-unknown-linux-gnu.tar.gz -O ~/mdbook.tar.gz
50
+ tar xvf ~/mdbook.tar.gz -C ~
52
51
- name : Build docs
53
52
working-directory : ./docs
54
- run : mdbook build
53
+ run : ~/mdbook build
54
+
Original file line number Diff line number Diff line change @@ -18,19 +18,19 @@ jobs:
18
18
runs-on : ubuntu-latest
19
19
steps :
20
20
- uses : actions/checkout@v2
21
- - uses : actions-rs/toolchain@v1
22
- with :
23
- profile : minimal
24
21
- name : Install mdbook
25
- run : cargo install mdbook mdbook-toc
22
+ run : |
23
+ wget https://github.com/rust-lang/mdBook/releases/download/v0.4.21/mdbook-v0.4.21-x86_64-unknown-linux-gnu.tar.gz -O ~/mdbook.tar.gz
24
+ tar xvf ~/mdbook.tar.gz -C ~
26
25
- name : Build docs
27
26
working-directory : ./docs
28
- run : mdbook build
27
+ run : ~/ mdbook build
29
28
- name : Deploy to GitHub Pages
30
29
if : ${{ github.ref == 'refs/heads/main' }}
31
30
uses : peaceiris/actions-gh-pages@v3
32
31
with :
33
32
publish_dir : ./docs/book
33
+ github_token : ${{ secrets.GITHUB_TOKEN }}
34
34
user_name : ' github-actions[bot]'
35
35
user_email : ' github-actions[bot]@users.noreply.github.com'
36
36
force_orphan : true
You can’t perform that action at this time.
0 commit comments