-
-
Notifications
You must be signed in to change notification settings - Fork 59
47 lines (39 loc) · 1.13 KB
/
electron-mac.yml
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
44
45
46
47
name: Build Electron [Mac]
on:
push:
branches:
- master
- dev
env:
GH_TOKEN: ${{ secrets.github_token }}
CSC_LINK: ${{ secrets.CSC_LINK }}
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
APPLE_ID: ${{ secrets.APPLE_ID }}
APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_APP_SPECIFIC_PASSWORD }}
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
APPLE_NOTARIZE: true # notarize the app after build
jobs:
release:
runs-on: macos-latest
steps:
- name: Checkout repository 🛎️
uses: actions/checkout@v3
- name: Setup Node version 🍀
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install dependencies ⚙️
run: npm ci
- name: Build and Sign Electron App 🛠️
run: |
npm run schema:generate
npm run electron:build
- name: Save artifacts
uses: actions/upload-artifact@v3
with:
name: electron-release-app
path: |
release-electron/*.dmg
release-electron/*.blockmap
release-electron/*.yaml
release-electron/*.yml