-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (36 loc) · 1.39 KB
/
Copy pathrelease.yml
File metadata and controls
43 lines (36 loc) · 1.39 KB
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
name: Release
# Cut a release by pushing a version tag, e.g.:
# npm version patch && git push --follow-tags
# That builds the universal app and publishes it to GitHub Releases, which the
# app then auto-updates from.
on:
push:
tags:
- 'v*'
jobs:
release:
runs-on: macos-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
- name: Rebuild the icon
run: npm run icon
- name: Build the Apple Intelligence helper (on-device, macOS 26+)
run: npm run apple-helper
- name: Build & publish to GitHub Releases
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# --- To ship a SIGNED + NOTARIZED build that auto-updates on the
# client's Mac, add these as repository secrets, then uncomment.
# (Requires a paid Apple Developer account + Developer ID cert.) ---
# CSC_LINK: ${{ secrets.CSC_LINK }} # base64 of the Developer ID .p12
# CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }} # the .p12 password
# APPLE_ID: ${{ secrets.APPLE_ID }}
# APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_APP_SPECIFIC_PASSWORD }}
# APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
run: npx electron-builder --mac --arm64 --publish always