-
Notifications
You must be signed in to change notification settings - Fork 15
44 lines (36 loc) · 1.43 KB
/
build_release_macos.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
name: Build Calaos Installer MacOS release
on: workflow_dispatch
jobs:
compile:
name: Build
runs-on: macos-latest
steps:
- name: Check out the repo
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Import certificate
uses: apple-actions/import-codesign-certs@v3
with:
p12-file-base64: ${{ secrets.MACOS_CERT_P12 }}
p12-password: ${{ secrets.MACOS_CERT_PASS }}
keychain: "build"
keychain-password: ${{ secrets.MACOS_KEYCHAIN_PASS }}
- name: Install deps
run: bash scripts/macos/install_deps.sh
- name: Compile
run: bash scripts/macos/build.sh
- name: Notarize Release Build
uses: lando/notarize-action@v2
with:
product-path: "build/MyApp.app"
appstore-connect-username: ${{ secrets.MACOS_NOTARIZATION_USERNAME }}
appstore-connect-password: ${{ secrets.MACOS_NOTARIZATION_PASSWORD }}
tool: "altool"
verbose: true
- name: Deploy
run: bash scripts/macos/deploy.sh
env:
UPLOAD_KEY: ${{ secrets.UPLOAD_KEY }}
MACOS_NOTARIZATION_USERNAME: ${{ secrets.MACOS_NOTARIZATION_USERNAME }}
MACOS_NOTARIZATION_PASSWORD: ${{ secrets.MACOS_NOTARIZATION_PASSWORD }}