This commit is contained in:
FairyEver
2019-12-15 00:17:34 +08:00
parent 8025b81422
commit 6575232f22
5 changed files with 107 additions and 5 deletions

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

@@ -0,0 +1,21 @@
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:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
BRANCH: gh-pages
FOLDER: dist
BUILD_SCRIPT: npm install && npm run build:github
CLEAN: true