37 lines
891 B
YAML
37 lines
891 B
YAML
name: Dashboard Build
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
pull_request:
|
|
branches: [ master ]
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: windows-latest
|
|
|
|
strategy:
|
|
matrix:
|
|
node-version: [14.x]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
- name: Install dependencies
|
|
run: cd Dashboard && yarn --network-timeout 1000000000
|
|
- name: Package for Windows
|
|
run: cd Dashboard && yarn pack:win
|
|
- name: Upload installer
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: LightControl-Setup
|
|
path: Dashboard/dist/LightControl-Setup.exe
|
|
- name: Upload portable files
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: LightControl-Portable
|
|
path: Dashboard/dist/win-unpacked
|