Using the CLI in CI/CD
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
jobs:
publish:
name: Publish to GitBook
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18.x
- run: npm ci
- run: npm install -g @gitbook/cli
- run: gitbook publish .
env:
GITBOOK_TOKEN: ${{ secrets.GITBOOK_TOKEN }}