Use notarytool instead of legacy method for Mac notarization

This commit is contained in:
Jonatan Heyman 2023-07-05 15:00:19 +02:00
parent df899ae619
commit 4cc439eb6d

View File

@ -5,15 +5,14 @@ on: push
jobs: jobs:
publish: publish:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
#if: ${{ startsWith(github.ref, 'refs/tags/v') }} if: ${{ startsWith(github.ref, 'refs/tags/v') }}
permissions: permissions:
contents: write contents: write
strategy: strategy:
matrix: matrix:
#os: [macos-latest, ubuntu-latest, windows-latest] #os: [macos-latest, ubuntu-latest, windows-latest]
#os: [macos-latest, windows-latest] os: [macos-latest, windows-latest]
os: [macos-latest]
steps: steps:
- name: Check out Git repository - name: Check out Git repository
@ -29,10 +28,10 @@ jobs:
# Import Apple API key for app notarization on macOS # Import Apple API key for app notarization on macOS
run: | run: |
mkdir -p ~/private_keys/ mkdir -p ~/private_keys/
echo '${{ secrets.apple_api_key }}' > ~/private_keys/AuthKey_${{ secrets.apple_api_key_id }}.p8 echo '${{ secrets.apple_api_key }}' > ~/private_keys/AuthKey.p8
- name: Build/release Electron app - name: Build/release Electron app
continue-on-error: true #continue-on-error: true
uses: samuelmeuli/action-electron-builder@v1 uses: samuelmeuli/action-electron-builder@v1
with: with:
# Specify electron-builder config file # Specify electron-builder config file
@ -55,9 +54,10 @@ jobs:
#release: ${{ startsWith(github.ref, 'refs/tags/v') }} #release: ${{ startsWith(github.ref, 'refs/tags/v') }}
env: env:
# macOS notarization API key # macOS notarization API key
API_KEY_ID: ${{ secrets.apple_api_key_id }} APPLE_API_KEY: ~/private_keys/AuthKey.p8
API_KEY_ISSUER_ID: ${{ secrets.apple_api_key_issuer_id }} APPLE_API_KEY_ID: ${{ secrets.apple_api_key_id }}
APPLE_API_KEY_ISSUER: ${{ secrets.apple_api_key_issuer_id }}
- name: Print notarization-error.log #- name: Print notarization-error.log
run: cat notarization-error.log # run: cat notarization-error.log