Skip to content

Commit 7a9cfae

Browse files
committed
Fix release action
1 parent 04e3c7a commit 7a9cfae

File tree

1 file changed

+16
-10
lines changed

1 file changed

+16
-10
lines changed
Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
tags:
66
- '[0-9]+.[0-9]+.[0-9]+'
7+
workflow_dispatch:
78

89
permissions:
910
contents: write
@@ -13,17 +14,20 @@ env:
1314

1415
jobs:
1516
publish:
16-
runs-on: ${{ matrix.os }}
17-
1817
strategy:
1918
matrix:
20-
include:
21-
- os: macos-latest
22-
arch: arm64
23-
- os: macos-latest
19+
config:
20+
- os: macos-13 # Intel
2421
arch: x64
22+
name: macOS
23+
- os: macos-14 # Apple Silicon
24+
name: macOS
25+
arch: arm64
2526
- os: windows-latest
2627
arch: x64
28+
name: Windows
29+
30+
runs-on: ${{ matrix.config.os }}
2731

2832
steps:
2933
- name: Check out Git repository
@@ -34,16 +38,18 @@ jobs:
3438
with:
3539
python-version: ${{ env.PYTHON_VERSION }}
3640

37-
- name: Setup Node.js environment
41+
- name: Set up Node.js
3842
uses: actions/setup-node@v4
3943
with:
4044
node-version: 20
4145

4246
- name: Install dependencies
4347
run: yarn install
4448

45-
- name: Publish using Electron Forge
49+
- name: Build for ${{ matrix.config.name }} (${{ matrix.config.arch }})
50+
run: yarn run make -- --arch=${{ matrix.config.arch }}
51+
52+
- name: Publish for ${{ matrix.config.name }} (${{ matrix.config.arch }})
4653
env:
4754
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
48-
npm_config_arch: ${{ matrix.arch }}
49-
run: yarn run publish
55+
run: yarn run publish -- --arch=${{ matrix.config.arch }}

0 commit comments

Comments
 (0)