2021-09-08 22:12:11 +03:00
|
|
|
# This action builds and deploys the master branch
|
2021-09-12 23:45:41 +03:00
|
|
|
name: 🏗️ Build App to Branch
|
2021-09-08 22:12:11 +03:00
|
|
|
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
|
2021-11-10 19:34:08 +03:00
|
|
|
if: ${{ github.repository_owner === 'lissy93' }}
|
2021-09-08 22:12:11 +03:00
|
|
|
with:
|
|
|
|
branch: dev-demo
|
|
|
|
folder: dist
|
|
|
|
|