Skip to content

Commit 8a5af2a

Browse files
authored
#2 Add GitHub Actions workflow for macOS build
1 parent b85afaa commit 8a5af2a

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

.github/macos-build.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Build macOS Release
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
workflow_dispatch:
7+
8+
jobs:
9+
build-mac:
10+
runs-on: macos-latest
11+
12+
defaults:
13+
run:
14+
working-directory: ./src
15+
16+
steps:
17+
- name: Check out repository code
18+
uses: actions/checkout@v4
19+
20+
- name: Setup Node.js
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: '20.10.0'
24+
25+
- name: Install dependencies
26+
run: npm install
27+
28+
- name: Build the Mac application
29+
run: npm run package:mac
30+
31+
- name: Upload the finished .dmg file
32+
uses: actions/upload-artifact@v4
33+
with:
34+
name: macos-app-build
35+
path: src/release/*.dmg
36+
retention-days: 5

0 commit comments

Comments
 (0)