2023-04-06 03:14:28 +00:00
|
|
|
name: Release
|
2023-04-03 23:58:24 +00:00
|
|
|
|
2023-04-06 03:14:28 +00:00
|
|
|
on:
|
2023-04-10 17:38:32 +00:00
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- v*
|
2023-04-03 23:58:24 +00:00
|
|
|
|
|
|
|
jobs:
|
2023-04-10 17:38:32 +00:00
|
|
|
release:
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os: [macos-latest, ubuntu-latest, windows-latest]
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Check out Git repository
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- uses: actions/setup-node@v3
|
|
|
|
with:
|
|
|
|
node-version: 18
|
|
|
|
|
|
|
|
- name: Run Electron Builder
|
2023-12-02 16:41:38 +00:00
|
|
|
run: |
|
|
|
|
case "${{ matrix.os }}" in
|
|
|
|
macos-latest) platform=mac ;;
|
|
|
|
ubuntu-latest) platform=linux ;;
|
|
|
|
windows-latest) platform=windows ;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
pnpm install
|
|
|
|
pnpm build
|
|
|
|
pnpm electron-builder --$platform --publish always
|
|
|
|
env:
|
|
|
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|