Skip to content

Commit eead24b

Browse files
authored
Update gitbook-deploy.yml
1 parent eddf9f2 commit eead24b

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/gitbook-deploy.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ jobs:
99
steps:
1010
- name: Checkout the source code from GitHub
1111
uses: actions/checkout@v2
12+
with: { fetch-depth: 0 }
1213
- name: Install Node.js (version 10, not higher!)
1314
uses: actions/setup-node@v2
1415
with: { node-version: '10' }
@@ -19,8 +20,13 @@ jobs:
1920
- name: Build the book to the `_book` folder (git build)
2021
run: gitbook build . --log=debug --debug
2122
- 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
2324
- name: Copy the compiled book files to `_gh-pages`
2425
run: cp -R ./_book/* ./_gh-pages
2526
- 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

0 commit comments

Comments
 (0)