File tree Expand file tree Collapse file tree 5 files changed +81
-81
lines changed Expand file tree Collapse file tree 5 files changed +81
-81
lines changed Original file line number Diff line number Diff line change
1
+ name : " Install mdBook with Plugins"
2
+ description : ' Shared action steps to install mdBook with required plugins'
3
+ runs :
4
+ using : " composite"
5
+ steps :
6
+ - name : Setup mdBook 📚
7
+ uses : peaceiris/actions-mdbook@v1
8
+ with :
9
+ mdbook-version : ' latest'
10
+
11
+ - name : Install mdbook-linkcheck plugin
12
+ shell : bash
13
+ run : |
14
+ curl -s https://api.github.com/repos/Michael-F-Bryan/mdbook-linkcheck/releases/latest \
15
+ | grep browser_download_url \
16
+ | grep $(rustc -Vv | grep host | cut -d' ' -f2) \
17
+ | cut -d : -f 2,3 \
18
+ | tr -d \" \
19
+ | wget -qi - -O mdbook-linkcheck.zip
20
+
21
+ unzip mdbook-linkcheck.zip -d mdbook-linkcheck
22
+ chmod +x mdbook-linkcheck/mdbook-linkcheck
23
+ echo "$PWD/mdbook-linkcheck" >> $GITHUB_PATH
Original file line number Diff line number Diff line change
1
+ name : Deploy to GitHub Pages
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - ' [0-9][0-9][0-9][0-9].[0-9][0-9].[0-9][0-9][0-9]'
7
+
8
+ jobs :
9
+ deploy :
10
+ runs-on : ubuntu-20.04
11
+ concurrency :
12
+ group : ${{ github.workflow }}-${{ github.ref }}
13
+ cancel-in-progress : true
14
+ steps :
15
+ - name : Checkout 🛎️
16
+ uses : actions/checkout@v3
17
+
18
+ - name : Set up mdBook 📚
19
+ uses : ./.github/workflows/common/set-up-mdbook
20
+
21
+ - name : Build mdBook 📚
22
+ run : mdbook build
23
+
24
+ - name : Deploy to GitHub Pages 🚀
25
+
26
+ with :
27
+ branch : gh-pages
28
+ folder : ./book/html
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ name : Verify PR
2
+
3
+ on :
4
+ pull_request :
5
+ branches :
6
+ - main
7
+
8
+ jobs :
9
+ verify :
10
+ runs-on : ubuntu-20.04
11
+ steps :
12
+ - name : Checkout 🛎️
13
+ uses : actions/checkout@v3
14
+
15
+ - name : Use Node.js 🐰
16
+ uses : actions/setup-node@v3
17
+ with :
18
+ node-version : 16
19
+
20
+ - name : Install Node Modules 💾
21
+ run : npm ci
22
+
23
+ - name : Lint and Spellcheck 🧶
24
+ run : npm run lint
25
+
26
+ - name : Set up mdBook 📚
27
+ uses : ./.github/workflows/common/set-up-mdbook
28
+
29
+ - name : Build mdBook 📚
30
+ run : mdbook build
You can’t perform that action at this time.
0 commit comments