-
Notifications
You must be signed in to change notification settings - Fork 15
49 lines (40 loc) · 1.68 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
44
45
46
47
48
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: Package
run: bash scripts/macos/package.sh
- name: Notarize Release Build
uses: lando/notarize-action@v2
with:
product-path: "${{ env.PACKAGE_FILE_NAME }}"
appstore-connect-username: ${{ secrets.MACOS_NOTARIZATION_USERNAME }}
appstore-connect-password: ${{ secrets.MACOS_NOTARIZATION_PASSWORD }}
appstore-connect-team-id: ${{ secrets.MACOS_NOTARIZATION_TEAMID }}
tool: "notarytool"
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 }}
MACOS_NOTARIZATION_TEAMID: ${{ secrets.MACOS_NOTARIZATION_TEAMID }}