Skip to content

Remove circleci

Remove circleci #7

Workflow file for this run

name: Build & Deploy GitBook
on:
pull_request:
push:
branches: ["master"]
permissions:
contents: write
concurrency:
group: gitbook-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "8"
- name: Build GitBook
run: |
npm install -g gitbook-cli
gitbook install
gitbook build
- name: Upload _book artifact
uses: actions/upload-artifact@v4
with:
name: gitbook-_book
path: _book
deploy:
needs: build
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
steps:
- name: Download _book artifact
uses: actions/download-artifact@v4
with:
name: gitbook-_book
path: _book
- name: Deploy to gh-pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: ./_book