File tree Expand file tree Collapse file tree 4 files changed +54
-46
lines changed
Expand file tree Collapse file tree 4 files changed +54
-46
lines changed Original file line number Diff line number Diff line change 6565 - name : Publish to Snap Store
6666 if : env.SNAPCRAFT_STORE_CREDENTIALS != ''
6767 run : snapcraft upload --release=stable binaries/*.snap
68+
69+ release-macos :
70+ runs-on : macos-latest
71+
72+ steps :
73+ - uses : actions/checkout@v4
74+
75+ - name : Use Node.js 22.x
76+ uses : actions/setup-node@v4
77+ with :
78+ node-version : 22.x
79+ cache : ' npm'
80+
81+ - run : npm ci --no-audit --no-optional
82+ - run : npm run webpack:production
83+
84+ - name : Build and notarize macOS app
85+ run : npm run build:mac
86+ env :
87+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
88+ APPLE_API_KEY : ${{ secrets.APPLE_API_KEY }}
89+ APPLE_API_KEY_ID : ${{ secrets.APPLE_API_KEY_ID }}
90+ APPLE_API_ISSUER : ${{ secrets.APPLE_API_ISSUER }}
91+
92+ - name : Upload artifacts for manual runs
93+ if : github.event_name == 'workflow_dispatch'
94+ uses : actions/upload-artifact@v4
95+ with :
96+ name : macos-packages
97+ path : |
98+ binaries/*.dmg
99+ binaries/*.zip
100+ binaries/latest-mac.yml
101+
102+ - name : Upload macOS artifacts to release
103+ if : github.event_name == 'release'
104+ uses : softprops/action-gh-release@v2
105+ with :
106+ files : |
107+ binaries/*.dmg
108+ binaries/*.zip
109+ binaries/latest-mac.yml
110+ env :
111+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 2222 target : default
2323 entitlements : ' build/entitlements.mac.plist'
2424 entitlementsInherit : ' build/entitlements.mac.plist'
25- notarize :
26- teamId : 4KRG6BGC37
25+ notarize : true
2726
2827linux :
2928 target :
Original file line number Diff line number Diff line change 3434 "@babel/preset-env" : " ^7.28.3" ,
3535 "@babel/preset-react" : " ^7.27.1" ,
3636 "@babel/register" : " ^7.28.3" ,
37- "@electron/notarize" : " ^1.2.4 " ,
37+ "@electron/notarize" : " ^3.1.1 " ,
3838 "babel-loader" : " ^10.0.0" ,
3939 "c8" : " ^10.1.3" ,
4040 "css-loader" : " ^7.1.2" ,
You can’t perform that action at this time.
0 commit comments