Add gh action to build and deploy the app

This commit is contained in:
Stefano Brilli 2021-06-20 11:27:45 +02:00
parent 2725fa1a6e
commit fa40b92ae6
1 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,26 @@
name: Build and Deploy Web MiniDisc 💽
on: [workflow_dispatch]
jobs:
build-and-deploy:
runs-on: ubuntu-20.04
steps:
- name: Install system dependencies 🏗
run: |
sudo apt-get update
sudo apt-get -y install build-essential libudev-dev libusb-1.0-0-dev
- name: Checkout 🛎️
uses: actions/checkout@v2.3.1
- name: Install and Build 🔧
run: |
npm install
npm run build
env:
CI: false # Do not treat warnings as errors
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@4.1.4
with:
branch: gh-pages # The branch the action should deploy to.
folder: build # The folder the action should deploy.