update actions #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: GitBook CI/CD | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Set up Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '10' | |
- name: Install GitBook CLI | |
run: npm install -g gitbook-cli | |
- name: Build GitBook | |
run: gitbook build | |
- name: Deploy (e.g., push to GitHub Pages) | |
run: | | |
# Add your deploy script here | |
# For example, deploy to GitHub Pages or a static hosting provider |