File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 9
9
steps :
10
10
- name : Checkout the source code from GitHub
11
11
uses : actions/checkout@v2
12
+ with : { fetch-depth: 0 }
12
13
- name : Install Node.js (version 10, not higher!)
13
14
uses : actions/setup-node@v2
14
15
with : { node-version: '10' }
19
20
- name : Build the book to the `_book` folder (git build)
20
21
run : gitbook build . --log=debug --debug
21
22
- name : Checkout the `gh-pages` branch into the `_gh-pages` folder
22
- run : ls -al && git worktree add ./_gh-pages gh-pages
23
+ run : git worktree add ./_gh-pages gh-pages
23
24
- name : Copy the compiled book files to `_gh-pages`
24
25
run : cp -R ./_book/* ./_gh-pages
25
26
- name : Commit and push the changed book files in the `gh-pages` branch
26
- run : cd _gh-pages && git add . && git status && git commit -m "Book web site deployment" && git push
27
+ run : |
28
+ cd _gh-pages
29
+ git add .
30
+ git status
31
+ git commit -m "Book web site deployment"
32
+ git push
You can’t perform that action at this time.
0 commit comments