Skip to content

Commit

Permalink
ci(conveyor): use the Apple notarization API
Browse files Browse the repository at this point in the history
  • Loading branch information
gotson committed Oct 17, 2023
1 parent 1fcef0e commit e9af1c4
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,12 @@ jobs:
tag: 'v${{ needs.version.outputs.version_next }}'
default_author: github_actions

- name: Retrieve the Apple private key and decode it to a file
env:
APPLE_PRIVATE_KEY: ${{ secrets.APPLE_PRIVATE_KEY }}
run: |
echo APPLE_PRIVATE_KEY | base64 --decode > ./secret/apple_private_key.p8
- name: Conveyor build apps
uses: hydraulic-software/conveyor/actions/[email protected]
if: inputs.github_release
Expand All @@ -157,8 +163,8 @@ jobs:
signing_key: ${{ secrets.CONVEYOR_SIGNING_KEY }}
agree_to_license: 1
env:
APPLE_ASP: ${{ secrets.APPLE_ASP }}
APPLE_ID: ${{ secrets.APPLE_ID }}
APPLE_ISSUER_ID: ${{ secrets.APPLE_ISSUER_ID }}
APPLE_KEY_ID: ${{ secrets.APPLE_KEY_ID }}

- name: Adjust Conveyor output
if: inputs.github_release
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,4 @@ application-oauth2.yml

### Conveyor
output/
secret/
7 changes: 4 additions & 3 deletions conveyor.ci.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ app {
mac.certificate = apple.cer

mac.notarization {
app-specific-password = ${env.APPLE_ASP}
team-id = GCZZU2X3J2
apple-id = ${env.APPLE_ID}
issuer-id = ${env.APPLE_ISSUER_ID}
key-id = ${env.APPLE_KEY_ID}
; the secret is written to file by CI from Gihub Secrets
private-key = ./secret/apple_private_key.p8
}
}

0 comments on commit e9af1c4

Please sign in to comment.