File tree Expand file tree Collapse file tree 1 file changed +21
-3
lines changed Expand file tree Collapse file tree 1 file changed +21
-3
lines changed Original file line number Diff line number Diff line change 11
11
- " book/**"
12
12
13
13
jobs :
14
- build-deploy :
14
+ check :
15
15
runs-on : ubuntu-22.04
16
16
name : build
17
+ if : ${{ github.event_name == 'pull_request' }}
17
18
steps :
18
19
- uses : actions/checkout@v4
19
20
- uses : actions-rs/toolchain@v1
@@ -27,16 +28,33 @@ jobs:
27
28
28
29
- run : mdbook build -d public
29
30
working-directory : book
30
-
31
+
31
32
- name : Link Checker
32
33
uses :
lycheeverse/[email protected]
33
34
with :
34
35
args : book/public
35
36
fail : true
36
37
38
+ build-deploy :
39
+ runs-on : ubuntu-22.04
40
+ name : build
41
+ if : ${{ (github.event_name == 'push' && github.ref == 'refs/heads/master') || github.event_name == 'release' }}
42
+ steps :
43
+ - uses : actions/checkout@v4
44
+ - uses : actions-rs/toolchain@v1
45
+ with :
46
+ profile : minimal
47
+ toolchain : stable
48
+ override : true
49
+
50
+ - name : Setup mdBook
51
+ uses : peaceiris/actions-mdbook@v1
52
+
53
+ - run : mdbook build -d public
54
+ working-directory : book
55
+
37
56
- name : Deploy to stable
38
57
uses : peaceiris/actions-gh-pages@v3
39
- if : ${{ (github.event_name == 'push' && github.ref == 'refs/heads/master') || github.event_name == 'release' }}
40
58
with :
41
59
github_token : ${{ secrets.GITHUB_TOKEN }}
42
60
publish_dir : ./book/public
You can’t perform that action at this time.
0 commit comments