mirror of
https://github.com/heyman/heynote.git
synced 2025-02-16 10:19:55 +01:00
Use notarytool instead of legacy method for Mac notarization
This commit is contained in:
parent
df899ae619
commit
4cc439eb6d
18
.github/workflows/build.yml
vendored
18
.github/workflows/build.yml
vendored
@ -5,15 +5,14 @@ on: push
|
||||
jobs:
|
||||
publish:
|
||||
runs-on: ${{ matrix.os }}
|
||||
#if: ${{ startsWith(github.ref, 'refs/tags/v') }}
|
||||
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
#os: [macos-latest, ubuntu-latest, windows-latest]
|
||||
#os: [macos-latest, windows-latest]
|
||||
os: [macos-latest]
|
||||
os: [macos-latest, windows-latest]
|
||||
|
||||
steps:
|
||||
- name: Check out Git repository
|
||||
@ -29,10 +28,10 @@ jobs:
|
||||
# Import Apple API key for app notarization on macOS
|
||||
run: |
|
||||
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
|
||||
continue-on-error: true
|
||||
#continue-on-error: true
|
||||
uses: samuelmeuli/action-electron-builder@v1
|
||||
with:
|
||||
# Specify electron-builder config file
|
||||
@ -55,9 +54,10 @@ jobs:
|
||||
#release: ${{ startsWith(github.ref, 'refs/tags/v') }}
|
||||
env:
|
||||
# macOS notarization API key
|
||||
API_KEY_ID: ${{ secrets.apple_api_key_id }}
|
||||
API_KEY_ISSUER_ID: ${{ secrets.apple_api_key_issuer_id }}
|
||||
APPLE_API_KEY: ~/private_keys/AuthKey.p8
|
||||
APPLE_API_KEY_ID: ${{ secrets.apple_api_key_id }}
|
||||
APPLE_API_KEY_ISSUER: ${{ secrets.apple_api_key_issuer_id }}
|
||||
|
||||
- name: Print notarization-error.log
|
||||
run: cat notarization-error.log
|
||||
#- name: Print notarization-error.log
|
||||
# run: cat notarization-error.log
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user