Build Calaos Installer MacOS release #25
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} | |