2021-06-02 03:54:00 +00:00
|
|
|
name: Publish docs
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
jobs:
|
|
|
|
deploy:
|
|
|
|
runs-on: ubuntu-18.04
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Setup Node.js
|
|
|
|
uses: actions/setup-node@v2-beta
|
|
|
|
with:
|
|
|
|
node-version: '14'
|
|
|
|
|
2022-03-04 04:01:16 +00:00
|
|
|
- name: Install PNPM and install dependencies
|
|
|
|
uses: pnpm/action-setup@v2.2.1
|
|
|
|
with:
|
|
|
|
version: ^6.24.2
|
|
|
|
run_install: true
|
|
|
|
|
2021-06-02 03:54:00 +00:00
|
|
|
- name: Build
|
|
|
|
run: |
|
2022-03-04 04:01:16 +00:00
|
|
|
pnpm run build
|
|
|
|
pnpm run docs
|
2021-06-02 03:54:00 +00:00
|
|
|
|
|
|
|
- name: Deploy docs
|
|
|
|
uses: peaceiris/actions-gh-pages@v3
|
|
|
|
with:
|
|
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
publish_branch: gh-pages
|
|
|
|
publish_dir: ./docs
|