Update README #5
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: Deploy to GitBook | |
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@v3 | |
with: | |
node-version: '10' | |
- name: Install GitBook CLI | |
run: | | |
npm install -g gitbook-cli | |
gitbook install | |
- name: Build GitBook | |
run: gitbook build | |
- name: Deploy to GitHub Pages | |
env: | |
GITBOOK_TOKEN: ${{ secrets.GITBOOK_TOKEN }} | |
run: gitbook push ./translations/_book https://monad-cn.gitbook.io/monad |