-
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (41 loc) · 1.15 KB
/
release.yaml
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
on:
push:
tags:
- "v*"
name: Create Release
jobs:
build:
name: Build
strategy:
matrix:
platform: [macos-latest, windows-latest, ubuntu-latest]
runs-on: ${{ matrix.platform }}
env:
GH_TOKEN: ${{secrets.GH_TOKEN}}
steps:
- uses: actions/checkout@v4
- name: Install Dependencies
run: npm ci
# Only lint once, it's not going to be different per platform
- name: Lint
if: matrix.platform == 'ubuntu-latest'
run: npm run lint
- name: Build
run: npm run build:client
- name: Build for macOS
if: matrix.platform == 'macos-latest'
run: npm run build:mac
- name: Build for Windows
if: matrix.platform == 'windows-latest'
run: |
npm run build:win
npm run build:nsis
- name: Build for Linux
if: matrix.platform == 'ubuntu-latest'
env:
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_STORE_CREDENTIALS }}
SNAPCRAFT_BUILD_ENVIRONMENT: host
run: |
npm run build:linux
sudo snap install snapcraft --classic
npm run build:snap