54 lines
1.1 KiB
YAML
54 lines
1.1 KiB
YAML
name: Test Electron App Production Build
|
|
|
|
on:
|
|
# Runs on pushes targeting the default branch
|
|
push:
|
|
paths:
|
|
- '!docs/**'
|
|
# Allows you to run this workflow manually from the Actions tab
|
|
workflow_dispatch:
|
|
|
|
|
|
jobs:
|
|
build-ubuntu:
|
|
runs-on: "ubuntu-latest"
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '20'
|
|
|
|
- name: Install dependencies
|
|
run: npm install
|
|
|
|
- name: Build Electron app
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
|
|
run: npm run build-nopublish
|
|
|
|
build-windows:
|
|
runs-on: "windows-latest"
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '20'
|
|
|
|
- name: Install dependencies
|
|
run: npm install
|
|
|
|
- name: Build Electron app
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
|
|
run: npm run build-nopublish
|
|
|
|
|
|
|