Adds GH action to build + deploy the master branch

This is my first attempt with GitHub actions. Maybe I am doing it all totally wrong...
This commit is contained in:
Alicia Sykes 2021-06-06 21:56:06 +01:00 committed by GitHub
parent dbafa2fce9
commit ddd89149e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,24 @@
# This action builds and deploys the master branch
name: Deploy demo of current version
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2.3.1
- name: Install and Build 🔧
run: |
npm install
npm run build
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@4.1.4
with:
branch: dev-demo
folder: dist