Add github workflows.

This commit is contained in:
jaywcjlove 2019-10-12 12:15:47 +08:00
parent 3f4a98277b
commit e2393018b6
1 changed files with 16 additions and 0 deletions

16
.github/workflows/ci.yml vendored Normal file
View File

@ -0,0 +1,16 @@
name: GitHub Actions Build and Deploy linux-command
on: [push, pull_request]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
- name: Build and Deploy
uses: JamesIves/github-pages-deploy-action@master
env:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
BRANCH: gh-pages
FOLDER: .deploy
BUILD_SCRIPT: npm install && npm run build