mirror of https://github.com/Lissy93/dashy.git
26 lines
612 B
YAML
26 lines
612 B
YAML
# This action builds and deploys the master branch
|
|
name: 🏗️ Build App to Branch
|
|
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
|
|
if: ${{ github.repository_owner == 'lissy93' }}
|
|
with:
|
|
branch: dev-demo
|
|
folder: dist
|
|
|