mirror of
https://github.com/litruv/picoGraph.git
synced 2026-07-24 02:36:04 +10:00
ci: build via electron-builder action
This commit is contained in:
23
.github/workflows/windows-build.yml
vendored
23
.github/workflows/windows-build.yml
vendored
@@ -1,16 +1,15 @@
|
||||
name: Windows Build
|
||||
name: Build/Release
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
tags:
|
||||
- 'v*'
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
release:
|
||||
runs-on: windows-latest
|
||||
|
||||
steps:
|
||||
- name: Check out repository
|
||||
@@ -22,13 +21,9 @@ jobs:
|
||||
node-version: 20
|
||||
cache: npm
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
|
||||
- name: Generate Windows icons
|
||||
run: npm run prebuild:win
|
||||
|
||||
- name: Build Windows artifacts
|
||||
uses: electron-builder/action@v1
|
||||
- name: Build/release Electron app
|
||||
uses: samuelmeuli/action-electron-builder@v1
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
release: ${{ startsWith(github.ref, 'refs/tags/v') }}
|
||||
args: --win --x64
|
||||
|
||||
Reference in New Issue
Block a user