Create docs.yml

This commit is contained in:
Toby Zerner 2020-11-22 11:26:50 +10:30 committed by GitHub
parent 88e8828a6d
commit 01952e2abf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 22 additions and 0 deletions

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

@ -0,0 +1,22 @@
name: Deploy Docs
on:
push:
branches: [ master ]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: vuepress-deploy
uses: jenkey2011/vuepress-deploy@master
env:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
TARGET_REPO: tobyzerner/json-api-server
TARGET_BRANCH: gh-pages
BUILD_SCRIPT: npm i && npm run docs:build
BUILD_DIR: docs/.vuepress/dist/