9router/.github/workflows/gitbook-pages.yml
dependabot[bot] 21ea744c72
chore(deps): bump actions/setup-node from 5 to 6 (#1174)
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 5 to 6.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-05-16 10:47:08 +07:00

50 lines
1.2 KiB
YAML

name: Deploy GitBook to 9router.github.io
on:
push:
branches: [main, master]
paths:
- "gitbook/**"
- ".github/workflows/gitbook-pages.yml"
workflow_dispatch:
concurrency:
group: gitbook-pages
cancel-in-progress: true
jobs:
build-deploy:
runs-on: ubuntu-latest
defaults:
run:
working-directory: gitbook
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v6
with:
node-version: 24
- name: Install deps
run: npm install --no-audit --no-fund
- name: Build static export
run: npm run build
env:
NODE_ENV: production
NEXT_PUBLIC_BASE_PATH: ""
- name: Add .nojekyll
run: touch out/.nojekyll
- name: Deploy to 9router.github.io
uses: peaceiris/actions-gh-pages@v4
with:
deploy_key: ${{ secrets.GH_PAGES_DEPLOY_KEY }}
external_repository: 9router/9router.github.io
publish_branch: main
publish_dir: gitbook/out
force_orphan: true
user_name: github-actions[bot]
user_email: github-actions[bot]@users.noreply.github.com
commit_message: "deploy: ${{ github.sha }}"