-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
42 lines (35 loc) · 1016 Bytes
/
build_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
name: build_mac
on:
release:
types: [published]
jobs:
build:
runs-on: macos-latest
env:
GH_TOKEN: ${{secrets.GH_TOKEN}}
CSC_LINK: ${{secrets.CSC_LINK}}
CSC_KEY_PASSWORD: ${{secrets.CSC_KEY_PASSWORD}}
APPLEID: ${{secrets.APPLEID}}
APPLEID_PASSWORD: ${{secrets.APPLEID_PASSWORD}}
steps:
- name: Import signing keychain
uses: apple-actions/import-codesign-certs@v2
with:
keychain: signing_temp
p12-file-base64: ${{secrets.CSC_LINK}}
p12-password: ${{secrets.CSC_KEY_PASSWORD}}
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 16
- run: npm ci
- run: npm run pack:prepare
- run: npm run pack:macm1:publish
- run: npm run pack:mac:publish
- name: Cleanup keychain
if: always()
shell: bash
run: |
# Don't fail if the keychain doesn't exist.
security delete-keychain signing_temp.keychain || true