From ddd89149e4479acfa17347e0e8d9f364092908b3 Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Sun, 6 Jun 2021 21:56:06 +0100 Subject: [PATCH] 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... --- .github/workflows/build-deploy-dev-demo.yml | 24 +++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/build-deploy-dev-demo.yml diff --git a/.github/workflows/build-deploy-dev-demo.yml b/.github/workflows/build-deploy-dev-demo.yml new file mode 100644 index 00000000..25d65190 --- /dev/null +++ b/.github/workflows/build-deploy-dev-demo.yml @@ -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 +