Skip to content

Commit

Permalink
gitbook-cli
Browse files Browse the repository at this point in the history
  • Loading branch information
liaodong authored and liaodong committed Oct 13, 2023
1 parent 821b7fa commit 65c3318
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/jekyll-gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,28 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install GitBook CLI
run: npm install -g gitbook-cli

- name: Install GitBook Plugins
run: cd ./document/ && gitbook install

- name: GitBook Build
run: cd ./document/ && gitbook build

- name: Build
run: gitbook build

- name: Setup Pages
uses: actions/configure-pages@v3
- name: Build and Deploy
uses: onejar99/gitbook-build-publish-action@v1.0.3

- name: Build with Jekyll
uses: actions/jekyll-build-pages@v1
with:
source: ./document/
source: ./document/_book
destination: ./_site

- name: Upload artifact
uses: actions/upload-pages-artifact@v2

Expand Down

0 comments on commit 65c3318

Please sign in to comment.