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:
49
.github/workflows/windows-build.yml
vendored
49
.github/workflows/windows-build.yml
vendored
@@ -1,34 +1,29 @@
|
|||||||
name: Windows Build
|
name: Build/Release
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
branches:
|
||||||
- 'v*'
|
- main
|
||||||
workflow_dispatch:
|
tags:
|
||||||
|
- 'v*'
|
||||||
|
|
||||||
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
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
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
|
||||||
|
with:
|
||||||
- name: Generate Windows icons
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
run: npm run prebuild:win
|
release: ${{ startsWith(github.ref, 'refs/tags/v') }}
|
||||||
|
args: --win --x64
|
||||||
- name: Build Windows artifacts
|
|
||||||
uses: electron-builder/action@v1
|
|
||||||
with:
|
|
||||||
args: --win --x64
|
|
||||||
|
|||||||
Reference in New Issue
Block a user