You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
1.2 KiB
53 lines
1.2 KiB
name: Build |
|
'on': |
|
push: |
|
tags: |
|
- v* |
|
workflow_dispatch: |
|
|
|
jobs: |
|
build: |
|
name: build and release electron app |
|
runs-on: '${{ matrix.os }}' |
|
strategy: |
|
matrix: |
|
os: [macos-latest, windows-latest, ubuntu-latest] |
|
steps: |
|
- name: Checkout |
|
uses: actions/checkout@v4 |
|
|
|
- name: Install Node.js |
|
uses: actions/setup-node@v4 |
|
with: |
|
node-version: 20 |
|
|
|
- name: Install pnpm |
|
uses: pnpm/action-setup@v3 |
|
with: |
|
version: 8 |
|
|
|
- name: Install Dependencies |
|
run: pnpm install |
|
|
|
- name: Build Electron App |
|
run: 'pnpm run build:desktop' |
|
env: |
|
GITHUB_TOKEN: '${{ secrets.ACCESS_TOKEN }}' |
|
|
|
- name: Upload artifacts |
|
uses: actions/upload-artifact@v4 |
|
with: |
|
name: '${{ matrix.os }}' |
|
path: packages/desktop/release |
|
|
|
- name: Release |
|
uses: softprops/action-gh-release@v2 |
|
#if: startsWith(github.ref, 'refs/tags/') |
|
with: |
|
files: | |
|
packages/desktop/release/*.AppImage |
|
packages/desktop/release/*.exe |
|
packages/desktop/release/*.dmg |
|
packages/desktop/release/*.yml |
|
env: |
|
GITHUB_TOKEN: '${{ secrets.ACCESS_TOKEN }}'
|
|
|