-
Notifications
You must be signed in to change notification settings - Fork 569
38 lines (32 loc) · 829 Bytes
/
Copy pathbuild.yml
File metadata and controls
38 lines (32 loc) · 829 Bytes
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
name: Build & Upload MacOS Artifacts
on:
workflow_dispatch:
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: Cache deps
uses: actions/cache@v4
with:
path: |
~/.cache/electron
~/.cache/electron-builder
node_modules
key: macos-electron-${{ hashFiles('package-lock.json') }}
- name: Install deps
run: npm ci
- name: Build macOS (universal)
run: npm run dist:mac
- name: Upload macOS artifacts
uses: actions/upload-artifact@v4
with:
name: macos-artifacts
path: |
dist/*.dmg
dist/*.zip