chore: add github action

This commit is contained in:
Sivan 2020-02-21 01:18:31 +08:00 committed by Sivan
parent 439b7a1710
commit 898d2de3d8

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

@ -0,0 +1,21 @@
name: deploy
on:
push:
branches:
- master
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
- name: Deploy to GitHub Pages
uses: Cecilapp/GitHub-Pages-deploy@master
env:
EMAIL: sun.sivan@gmail.com
GH_TOKEN: ${{ secrets.ACCESS_TOKEN }}
BASE_BRANCH: master
BUILD_DIR: demo