feat: (ai gen) github release workflow

This commit is contained in:
2026-02-10 08:08:48 +01:00
parent 1739142cf3
commit e89774f080
2 changed files with 60 additions and 0 deletions

54
.github/workflows/electron-release.yml vendored Normal file
View File

@@ -0,0 +1,54 @@
name: Electron Release
on:
push:
tags:
- "v*"
permissions:
contents: write
jobs:
build-and-publish:
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
target: linux
- os: windows-latest
target: win
- os: macos-latest
target: mac
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: "pnpm"
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build and publish Electron app
run: pnpm electron:publish:${{ matrix.target }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload dist artifacts
uses: actions/upload-artifact@v4
with:
name: electron-${{ matrix.target }}
path: dist-electron
if-no-files-found: error

View File

@@ -103,6 +103,12 @@
"linux": {
"target": ["AppImage"],
"category": "Utility"
},
"publish": {
"provider": "github",
"owner": "SrIzan10",
"repo": "helium",
"releaseType": "release"
}
}
}