Deploy github

This commit is contained in:
FairyEver
2019-12-14 10:55:54 +08:00
parent ea833d4b3a
commit 94e47f8888
3 changed files with 33 additions and 0 deletions

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

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