-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (33 loc) · 946 Bytes
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Release
run-name: 'Release: ${{ github.event.release.tag_name }}'
on:
release:
types: [published]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20.x'
- name: Install snapcraft
run: sudo snap install snapcraft --classic
if: ${{ matrix.os == 'ubuntu-latest'}}
- name: Install dependencies
run: yarn --immutable --check-cache
- name: Run build
run: yarn build
- name: Build Electron app
run: |
cd ./packages/desktop
yarn electron-builder --publish never
- name: Upload files
uses: AButler/[email protected]
with:
files: 'packages/desktop/dist/*.{exe,deb,snap,AppImage,dmg}'
repo-token: ${{ secrets.GITHUB_TOKEN }}