[refactor] add workflow

This commit is contained in:
zombieFox 2021-05-24 08:50:45 +01:00
parent 794c97ac44
commit 3560c7f6bb
1 changed files with 26 additions and 0 deletions

26
.github/workflows/gh-pages-deploy.yml vendored Normal file
View File

@ -0,0 +1,26 @@
name: gh-pages-deploy
on:
push:
branches:
- master
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2.3.1
with:
persist-credentials: false
- name: Install and Build
run: |
npm install
npm run build
- name: Deploy
uses: JamesIves/github-pages-deploy-action@4.1.3
with:
branch: gh-pages
folder: build/web