mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-25 00:36:31 +02:00
ci(desktop): add package & publish step with platform matrix and permissions
This commit is contained in:
parent
0f37919f3d
commit
337c381f36
1 changed files with 16 additions and 1 deletions
17
.github/workflows/desktop-release.yml
vendored
17
.github/workflows/desktop-release.yml
vendored
|
|
@ -5,12 +5,21 @@ on:
|
|||
tags:
|
||||
- 'v*'
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
os: [macos-latest, ubuntu-latest, windows-latest]
|
||||
include:
|
||||
- os: macos-latest
|
||||
platform: --mac
|
||||
- os: ubuntu-latest
|
||||
platform: --linux
|
||||
- os: windows-latest
|
||||
platform: --win
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
|
|
@ -40,3 +49,9 @@ jobs:
|
|||
- name: Build Electron
|
||||
run: pnpm build
|
||||
working-directory: surfsense_desktop
|
||||
|
||||
- name: Package & Publish
|
||||
run: pnpm exec electron-builder ${{ matrix.platform }} --config electron-builder.yml --publish always
|
||||
working-directory: surfsense_desktop
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue