add github action to deploy dist/ to gh-pages on push
This commit is contained in:
parent
ad46e09482
commit
c7652c7795
1 changed files with 22 additions and 0 deletions
22
.github/workflows/deploy-gh-pages.yml
vendored
Normal file
22
.github/workflows/deploy-gh-pages.yml
vendored
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
name: Build and Deploy
|
||||||
|
on: [push]
|
||||||
|
jobs:
|
||||||
|
build-and-deploy:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
|
||||||
|
- name: Install and Build
|
||||||
|
run: |
|
||||||
|
npm install
|
||||||
|
npm run build
|
||||||
|
|
||||||
|
- name: Deploy
|
||||||
|
uses: JamesIves/github-pages-deploy-action@releases/v3 # https://github.com/marketplace/actions/deploy-to-github-pages
|
||||||
|
with:
|
||||||
|
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
|
||||||
|
BRANCH: gh-pages
|
||||||
|
FOLDER: dist
|
Loading…
Reference in a new issue