-
-
Notifications
You must be signed in to change notification settings - Fork 129
82 lines (74 loc) · 2.36 KB
/
main.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
name: CI
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [master]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4.1.6
- name: Setup Python environment
uses: actions/setup-python@v5.1.0
with:
python-version: "3.10"
- name: Setup Node.js environment
uses: actions/setup-node@v4.0.2
with:
node-version: 22.2.0
check-latest: true
- name: Install dependencies
run: |
npm install -g yarn@1.22
yarn install --frozen-lockfile
- name: Build Distribution
run: |
git lfs pull
yarn run presets:validate
yarn run build:dist
env:
SENTRY_AUTH: ${{ secrets.SENTRY_AUTH }}
- name: Build Linux
if: ${{ matrix.os == 'ubuntu-latest' }}
run: yarn run build:linux --publish=onTagOrDraft
env:
GH_TOKEN: ${{ secrets.DEPLOY_TOKEN }}
- name: Build Windows
if: ${{ matrix.os == 'windows-latest' }}
run: yarn run build:win --publish=onTagOrDraft
env:
GH_TOKEN: ${{ secrets.DEPLOY_TOKEN }}
- name: Build Mac
if: ${{ matrix.os == 'macOS-latest' }}
run: yarn run build:mac --publish=onTagOrDraft
env:
GH_TOKEN: ${{ secrets.DEPLOY_TOKEN }}
- name: Upload Artifacts Windows
uses: actions/upload-artifact@v4.3.3
if: ${{ matrix.os == 'windows-latest' }}
with:
name: srm-build-windows
path: |
release/*.exe
release/*.msi
- name: Upload Artifacts Mac
uses: actions/upload-artifact@v4.3.3
if: ${{ matrix.os == 'macOS-latest' }}
with:
name: srm-build-mac
path: release/*.dmg
- name: Upload Artifacts Linux
uses: actions/upload-artifact@v4.3.3
if: ${{ matrix.os == 'ubuntu-latest' }}
with:
name: srm-build-linux
path: |
release/*.deb
release/*.AppImage