-
Notifications
You must be signed in to change notification settings - Fork 28
60 lines (58 loc) · 1.84 KB
/
build.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
name: Build
on:
workflow_call:
inputs:
checkout-latest:
description: 'Checkout the latest changes from the repository'
type: boolean
secrets:
SENTRY_AUTH_TOKEN:
required: true
SENTRY_SOURCE_MAPS:
required: true
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-13, macos-latest, windows-latest]
steps:
- if: ${{ inputs.checkout-latest == true }}
name: Check out master branch
uses: actions/checkout@v4
with:
ref: master
- if: ${{ inputs.checkout-latest == false }}
name: Check out Git repository
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20.18.1
cache: 'yarn'
- name: Install dependencies
run: yarn install
- name: Lint files
run: |
yarn quasar prepare
yarn lint
yarn type-check
- name: Build and Publish Electron App
run: |
yarn generate:icons
yarn generate:logos
yarn build
env:
GITHUB_TOKEN: ${{ github.token }}
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_SOURCE_MAPS: ${{ secrets.SENTRY_SOURCE_MAPS }}
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: M³ test build for ${{ matrix.os == 'macos-13' && 'Intel-based macOS' || matrix.os == 'macos-latest' && 'M-series (Apple Silicon) macOS' || matrix.os == 'windows-latest' && 'Windows' || 'Linux' }}
path: |
dist/electron/Packaged/*.exe
dist/electron/Packaged/*.dmg
dist/electron/Packaged/*.zip
dist/electron/Packaged/*.AppImage
dist/electron/Packaged/*/*/Contents/Info.plist