webminidisc/.github/workflows/deploy-to-gh-pages.yml

27 lines
765 B
YAML

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.