Skip to content

Disable electron-builder implicit publishing in release workflow #13

Disable electron-builder implicit publishing in release workflow

Disable electron-builder implicit publishing in release workflow #13

Workflow file for this run

name: Build Windows Release
on:
workflow_dispatch:
push:
tags:
- "v*"
jobs:
build-windows:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- name: Install dependencies
run: npm ci
- name: Build Windows NSIS installer
run: npm run electron:build:win:nsis
- name: Rename Windows installer
shell: pwsh
run: |
$installer = Get-ChildItem release -Filter "*_x64.exe" | Select-Object -First 1
Rename-Item $installer.FullName "sysai-assistant_1.4.0-beta_windows-x64-installer.exe"
- name: Build Windows unpacked portable directory
run: npm run electron:build:win:dir
- name: Create Windows portable ZIP
shell: pwsh
run: |
Compress-Archive -Path release\win-unpacked\* -DestinationPath release\sysai-assistant_1.4.0-beta_windows-x64-portable.zip -Force
- name: Upload Windows artifacts
uses: actions/upload-artifact@v4
with:
name: sysai-windows-release
path: |
release/*windows-x64-installer.exe
release/*windows-x64-portable.zip
release/*.yml