File tree Expand file tree Collapse file tree 1 file changed +11
-13
lines changed Expand file tree Collapse file tree 1 file changed +11
-13
lines changed Original file line number Diff line number Diff line change 1- name : Deploy mdBook to GitHub Pages
1+ name : Deploy to GitHub Pages
22
33on :
44 push :
5- branches :
6- - main
5+ branches : ["main"]
76
87jobs :
9- build :
8+ deploy :
109 runs-on : ubuntu-latest
11-
1210 steps :
13- - name : Checkout repository
14- uses : actions/checkout@v2
15-
16- - name : Install mdBook
17- run : cargo install mdbook
11+ - uses : actions/checkout@v4
12+
13+ - name : Setup mdBook
14+ run : |
15+ curl -L https://github.com/rust-lang/mdBook/releases/download/v0.4.34/mdbook-v0.4.34-x86_64-unknown-linux-gnu.tar.gz | tar xz
16+ sudo mv mdbook /usr/local/bin/
1817
19- - name : Build the book
18+ - name : Build
2019 run : mdbook build
2120
22- - name : Deploy to GitHub Pages
21+ - name : Deploy
2322 uses : peaceiris/actions-gh-pages@v3
2423 with :
2524 github_token : ${{ secrets.GITHUB_TOKEN }}
26- publish_branch : gh-pages
2725 publish_dir : ./book
You can’t perform that action at this time.
0 commit comments