Create deploy-site.yml

This commit is contained in:
信鑫-King 2019-08-26 13:51:35 +08:00 committed by GitHub
parent 5e56dc58e3
commit 9b1ede4341
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

19
.github/workflows/deploy-site.yml vendored Normal file
View File

@ -0,0 +1,19 @@
name: Deploy website
on:
release:
branches:
- master
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
- name: Deploy website
uses: JamesIves/github-pages-deploy-action@master
env:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
BRANCH: gh-pages
FOLDER: _site
BUILD_SCRIPT: npm install && npm run predeploy