-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (50 loc) · 1.54 KB
/
release-application.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: Electron forge build/release
run-name: build-release
on:
release:
types: [released]
jobs:
release-electron-application:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest-xlarge, windows-latest]
steps:
- name: Check out Git repository
uses: actions/checkout@v4
with:
ref: ${{ github.event.release.tag_name }}
- name: Install Node.js and NPM
uses: actions/setup-node@v4
with:
node-version: "20"
- uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install dependencies
run: npm ci
# Windows build
- name: Publish Electron App release (Windows)
if: ${{ matrix.os == 'windows-latest' }}
env:
GITHUB_TOKEN: ${{ secrets.github_token }}
DEBUG: "*"
run: npm run publish -- --arch=x64 --platform=win32
# macOS arm64 build
- name: Publish Electron App release (Darwin arm64)
if: ${{ matrix.os == 'macos-latest-xlarge' }}
env:
GITHUB_TOKEN: ${{ secrets.github_token }}
DEBUG: "*"
run: |
npm run publish -- --arch=arm64 --platform=darwin
ls -R out/multi-arch
# macOS x64 build
- name: Publish Electron App release (Darwin x64)
if: ${{ matrix.os == 'macos-latest-xlarge' }}
env:
GITHUB_TOKEN: ${{ secrets.github_token }}
DEBUG: "*"
run: |
npm run publish -- --arch=x64 --platform=darwin
ls -R out/multi-arch