ci: build via electron-builder action

This commit is contained in:
2025-10-20 01:23:22 +11:00
parent fbc6d5392c
commit 252cdee13d

View File

@@ -1,19 +1,18 @@
name: Windows Build name: Build/Release
on: on:
push: push:
branches:
- main
tags: tags:
- 'v*' - 'v*'
workflow_dispatch:
jobs: jobs:
build: release:
runs-on: ubuntu-latest runs-on: windows-latest
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps: steps:
- name: Checkout repository - name: Check out repository
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Setup Node.js - name: Setup Node.js
@@ -22,13 +21,9 @@ jobs:
node-version: 20 node-version: 20
cache: npm cache: npm
- name: Install dependencies - name: Build/release Electron app
run: npm ci uses: samuelmeuli/action-electron-builder@v1
- name: Generate Windows icons
run: npm run prebuild:win
- name: Build Windows artifacts
uses: electron-builder/action@v1
with: with:
github_token: ${{ secrets.GITHUB_TOKEN }}
release: ${{ startsWith(github.ref, 'refs/tags/v') }}
args: --win --x64 args: --win --x64