add update docs action

This commit is contained in:
Tony Brix 2020-12-13 02:15:10 -06:00
parent 4ebe8d104f
commit 761b4df442
1 changed files with 23 additions and 0 deletions

23
.github/workflows/docs.yml vendored Normal file
View File

@ -0,0 +1,23 @@
name: 'Update Docs'
on:
push:
branches:
- master
jobs:
docs:
name: Update Docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- name: Install Packages
run: npm install
- name: Build Docs
run: npm run docs
- name: Deploy 🚢
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/dist