-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (50 loc) · 1.28 KB
/
build-electron-app.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
name: react-geo-trial
on:
push:
tags:
- 'v*'
pull_request:
branches:
- main
jobs:
build:
name: Build App
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, macos-latest, ubuntu-latest]
include:
- os: windows-latest
target: squirrel
- os: macos-latest
target: dmg
- os: ubuntu-latest
target: deb
steps:
# Checkout the code
- name: Checkout code
uses: actions/checkout@v3
# Set up Node.js
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'yarn'
# Install dependencies
- name: Install dependencies
run: yarn install
# Build the Electron app (Make sure the app is packaged first)
- name: Package Electron App
run: yarn package-electron
# Build the Electron app
- name: Build app
run: yarn make-electron
env:
ELECTRON_MAKER_TARGETS: ${{ matrix.target }}
# Upload artefacts for PRs or tagged releases
- name: Upload artefacts
uses: actions/upload-artifact@v4
if: success()
with:
name: ${{ matrix.os }}-nightly
path: out/make/