Skip to content

Commit

Permalink
simplify build script
Browse files Browse the repository at this point in the history
  • Loading branch information
mifi committed Mar 27, 2021
1 parent f012ee8 commit 797ae63
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,14 @@ jobs:
# Log in to Snap Store
snapcraft_token: ${{ secrets.snapcraft_token }}

- name: Prepare for app notarization
- name: Prepare Apple API key
# Import Apple API key for app notarization on macOS and for uploading to Mac App Store
# 'altool --help': '--apiKey' will search the following directories in sequence for a private key file with the name of:
# 'AuthKey_<api_key>.p8': './private_keys', '~/private_keys', '~/.private_keys', and '~/.appstoreconnect/private_keys'.
if: startsWith(matrix.os, 'macos')
# Import Apple API key for app notarization on macOS
run: |
mkdir -p ~/private_keys/
echo '${{ secrets.api_key }}' > ~/private_keys/AuthKey_${{ secrets.api_key_id }}.p8
mkdir -p ~/.appstoreconnect/private_keys/
echo '${{ secrets.api_key }}' > ~/.appstoreconnect/private_keys/AuthKey_${{ secrets.api_key_id }}.p8
- name: Download custom ffmpeg for Mac
if: startsWith(matrix.os, 'macos')
Expand Down Expand Up @@ -79,6 +81,4 @@ jobs:
# In case of ERROR ITMS-90189: Redundant Binary Upload
continue-on-error: true
run: |
mkdir -p ~/.appstoreconnect/private_keys/
echo '${{ secrets.api_key }}' > ~/.appstoreconnect/private_keys/AuthKey_${{ secrets.api_key_id }}.p8
xcrun altool --upload-app -f dist/mas/LosslessCut-mac.pkg --apiKey ${{ secrets.api_key_id }} --apiIssuer ${{ secrets.api_key_issuer_id }}

0 comments on commit 797ae63

Please sign in to comment.