chore: build docs on master push

This commit is contained in:
Harttle
2022-01-22 21:59:02 +08:00
committed by Harttle
parent cc6b66216d
commit 1e69d86b0c
2 changed files with 29 additions and 7 deletions
+27
View File
@@ -0,0 +1,27 @@
name: Docs
on:
push:
branches:
- master
jobs:
docs:
name: Docs
runs-on: ubuntu-18.04
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '14'
- name: Build
run: |
npm ci
npm run build:docs
- name: Publish
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: docs/public