Skip to content

dev v1.2.0 (#15)

dev v1.2.0 (#15) #22

Workflow file for this run

name: Deploy GitHub pages
on:
push:
branches: [main]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: npm install
working-directory: doc
- name: Build site
run: npm run build
working-directory: doc
- name: Add CNAME file
run: cp ./CNAME ./doc/build/CNAME
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./doc/build