Skip to content

feat: auto deploy translations #1

feat: auto deploy translations

feat: auto deploy translations #1

name: Deploy to GitBook
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Switch dir
uses: cd ./translation
- name: Install GitBook CLI
run: |
npm install -g gitbook-cli
gitbook install
- name: Build GitBook
run: gitbook build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./translations/_book