Skip to content

ci: gitbook 文档自动增加目录 #4

ci: gitbook 文档自动增加目录

ci: gitbook 文档自动增加目录 #4

Workflow file for this run

name: Build and Deploy GitBook
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install Node.js
uses: actions/setup-node@v2
with:
node-version: '20'
- name: Install GitBook CLI
run: npm install -g gitbook-cli
- name: Install GitBook plugins
run: gitbook install
- name: Build GitBook
run: gitbook build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_book