File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -24,22 +24,28 @@ jobs:
24
24
uses : taiki-e/install-action@v2
25
25
with :
26
26
tool : mdbook
27
- - name : Build book
27
+ - name : Prepare directories
28
+ run : |
29
+ mkdir -p ${{ runner.temp }}/book
30
+ mkdir -p ${{ runner.temp }}/book/devel
31
+ mkdir -p ${{ runner.temp }}/book/dev-guide
32
+ - name : Build user-guide (stable)
28
33
run : |
29
- # Build for stable
30
34
git checkout stable
31
35
# Support both old and new directory structure during the transition
32
36
cd doc/user-guide || cd doc
33
37
mdbook build
34
38
mv book ${{ runner.temp }}
35
- # Build for master
36
- cd $(git rev-parse --show-toplevel)
39
+ - name : Build user-guide ( master)
40
+ run : |
37
41
git checkout master
38
42
cd doc/user-guide
39
43
mdbook build
40
44
mv book ${{ runner.temp }}/book/devel
41
- # Build dev-guide for master
42
- cd ../dev-guide
45
+ - name : Build dev-guide (master)
46
+ run : |
47
+ git checkout master
48
+ cd doc/dev-guide
43
49
mdbook build
44
50
mv book ${{ runner.temp }}/book/dev-guide
45
51
- name : Deploy to GitHub
You can’t perform that action at this time.
0 commit comments