-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (40 loc) · 1.42 KB
/
release.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
# ref: https://sevic.dev/notes/electron-forge-publish-github/
name: Release app
on:
workflow_dispatch:
jobs:
build:
environment: CI
strategy:
matrix:
os:
[
{ name: "windows", image: "windows-latest" },
{ name: "linux", image: "ubuntu-latest" },
{ name: "macos", image: "macos-13" },
]
fail-fast: true
runs-on: ${{ matrix.os.image }}
steps:
- name: Github checkout
uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
# ref: https://github.com/LinusU/node-appdmg/issues/234#issuecomment-2002410428
- name: Fix appdmg GHA mac runner error 1
if: matrix.os.name == 'macos'
uses: actions/setup-python@v5
with:
python-version: 3.12
- name: Fix appdmg GHA mac runner error 2
if: matrix.os.name == 'macos'
run: |
python3 -m pip install setuptools --break-system-packages
npm install -g [email protected]
- name: Publish app
env:
GITHUB_TOKEN: ${{ secrets.GH_BOOKORD_RELEASE_TOKEN }}
run: npm run publish