The GitHub Action is used to build GitBook static site files and deploy to GitHub Pages via gh-pages branch.
It's very easy to use it. Add a workflow like shown:
name: Build and Publish My GitBook
on:
workflow_dispatch:
push:
branches:
- master
jobs:
build-and-deploy:
name: Build and deploy
runs-on: ubuntu-latest
env:
MY_SECRET : ${{secrets.GH_ACCESS_TOKEN}}
USER_NAME : <Your Git username>
USER_EMAIL : <Your Git email>
BOOK_DIR : your_book_sources_folder_name
steps:
- name: Checkout 🛎️
uses: actions/[email protected]
- name: Build and Deploy 🚀
uses: onejar99/[email protected]