add github action to deploy dist/ to gh-pages on push

This commit is contained in:
Niko Lockenvitz 2020-05-22 22:06:49 +02:00
parent ad46e09482
commit c7652c7795

22
.github/workflows/deploy-gh-pages.yml vendored Normal file
View 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