👷 release pipeline

This commit is contained in:
2026-03-17 10:42:25 +10:00
parent 014f88522b
commit 8d17f9dc01
2 changed files with 52 additions and 0 deletions

48
.github/workflows/release.yml vendored Normal file
View File

@@ -0,0 +1,48 @@
name: Release
on:
push:
tags:
- 'v*'
jobs:
build:
strategy:
matrix:
include:
- os: macos-latest
build_cmd: package
- os: windows-latest
build_cmd: package:win
- os: ubuntu-latest
build_cmd: package:linux
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
cache-dependency-path: package-lock.json
- name: Install dependencies
run: npm ci
- name: Build & package
run: npm run ${{ matrix.build_cmd }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload release assets
uses: softprops/action-gh-release@v2
with:
draft: true
files: |
dist/*.dmg
dist/*.exe
dist/*.AppImage
dist/*.deb
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@@ -59,6 +59,10 @@
"icon": "resources/icon.ico",
"target": [{ "target": "nsis", "arch": ["x64"] }]
},
"linux": {
"icon": "resources/icon.png",
"target": [{ "target": "AppImage", "arch": ["x64"] }]
},
"files": [
"out/**/*"
],