add electron build

This commit is contained in:
Stewart Allen 2024-06-14 17:38:07 -04:00
commit 7e8838da1c
8 changed files with 164 additions and 10 deletions

36
.github/workflows/build.yml vendored Normal file
View file

@ -0,0 +1,36 @@
name: Build Electron App
on:
push:
tags:
- 'v*'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '20'
- name: Install dependencies
run: npm install
- name: Build Electron app
run: npm run build
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: kiri-${{ matrix.os }}-${{ github.ref_name }}
path: dist/