Add gh action to build and deploy the app
This commit is contained in:
parent
2725fa1a6e
commit
fa40b92ae6
|
@ -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.
|
Loading…
Reference in New Issue