2020-05-22 20:06:49 +00:00
|
|
|
name: Build and Deploy
|
2020-05-23 15:40:46 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
2020-05-22 20:06:49 +00:00
|
|
|
jobs:
|
|
|
|
build-and-deploy:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
persist-credentials: false
|
|
|
|
|
|
|
|
- name: Install and Build
|
|
|
|
run: |
|
2020-05-23 09:36:58 +00:00
|
|
|
git config user.email "gh-pages-deploy@nikolockenvitz.de"
|
|
|
|
git config user.name "Niko Lockenvitz"
|
2020-05-22 20:06:49 +00:00
|
|
|
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
|