-
Notifications
You must be signed in to change notification settings - Fork 242
Refactor macOS notarization and signing setup #3352
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -365,13 +365,13 @@ jobs: | |
| run: ${{ matrix.config.base_command }} build | ||
| env: | ||
| JAMULUS_BUILD_VERSION: ${{ needs.create_release.outputs.build_version }} | ||
| MACOS_CERTIFICATE: ${{ secrets.MACOS_CERT}} | ||
| MACOS_CERTIFICATE_PWD: ${{ secrets.MACOS_CERT_PWD }} | ||
| MACOS_CERTIFICATE_ID: ${{ secrets.MACOS_CERT_ID }} | ||
| MAC_STORE_APP_CERT: ${{ secrets.MACAPP_CERT}} | ||
| MACOS_CERTIFICATE: ${{ secrets.MACOS_CERT }} # Base64 encoded Developer ID Application certificate. See https://help.apple.com/xcode/mac/current/#/dev154b28f09 | ||
| MACOS_CERTIFICATE_PWD: ${{ secrets.MACOS_CERT_PWD }} # Password protecting secrets.MACOS_CERTIFICATE | ||
| MACOS_CERTIFICATE_ID: ${{ secrets.MACOS_CERT_ID }} # Certificate ID of secrets.MACOS_CERTIFICATE. If unknown, import secrets.MACOS_CERT into keychain and get the hash via "security find-identity -v" | ||
| MAC_STORE_APP_CERT: ${{ secrets.MACAPP_CERT }} # Base64 encoded Mac App Distribution certificate | ||
| MAC_STORE_APP_CERT_PWD: ${{ secrets.MACAPP_CERT_PWD }} | ||
| MAC_STORE_APP_CERT_ID: ${{ secrets.MACAPP_CERT_ID }} | ||
| MAC_STORE_INST_CERT: ${{ secrets.MACAPP_INST_CERT}} | ||
| MAC_STORE_INST_CERT: ${{ secrets.MACAPP_INST_CERT }} # Base64 encoded Mac Installer Distribution certificate | ||
| MAC_STORE_INST_CERT_PWD: ${{ secrets.MACAPP_INST_CERT_PWD }} | ||
| MAC_STORE_INST_CERT_ID: ${{ secrets.MACAPP_INST_CERT_ID }} | ||
| NOTARIZATION_PASSWORD: ${{ secrets.NOTARIZATION_PASSWORD }} | ||
|
|
@@ -408,23 +408,24 @@ jobs: | |
| needs.create_release.outputs.publish_to_release == 'true' && | ||
| steps.build.outputs.macos_notarize == 'true' | ||
| id: notarize-macOS-app | ||
| uses: lando/notarize-action@4f5869b09386e8336802159031e4189e0919ae20 | ||
| with: | ||
| product-path: deploy/${{ steps.get-artifacts.outputs.artifact_1 }} | ||
| primary-bundle-id: io.jamulus.Jamulus | ||
| appstore-connect-username: ${{ secrets.NOTARIZATION_USERNAME }} | ||
| appstore-connect-password: ${{ secrets.NOTARIZATION_PASSWORD }} | ||
| appstore-connect-team-id: ${{ secrets.NOTARIZATION_TEAM_ID }} | ||
| run: ${{ matrix.config.base_command }} notarize | ||
| env: | ||
| JAMULUS_BUILD_VERSION: ${{ needs.create_release.outputs.build_version }} | ||
| ARTIFACT_PATH: deploy/${{ steps.get-artifacts.outputs.artifact_1 }} | ||
| NOTARIZATION_USERNAME: ${{ secrets.NOTARIZATION_USERNAME }} # Apple ID for notarization | ||
| NOTARIZATION_PASSWORD: ${{ secrets.NOTARIZATION_PASSWORD }} # App specific password for Apple ID | ||
| APPLE_TEAM_ID: ${{ secrets.NOTARIZATION_TEAM_ID }} # Team ID from App Store Connect | ||
|
|
||
| - name: Staple macOS Release Build | ||
| if: >- | ||
| steps.build.outputs.macos_signed == 'true' && | ||
| needs.create_release.outputs.publish_to_release == 'true' && | ||
| steps.build.outputs.macos_notarize == 'true' | ||
| id: staple-macOS-app | ||
| uses: BoundfoxStudios/action-xcode-staple@cd6c16fb6a3dfb365203a41343926f81e813afad | ||
| with: | ||
| product-path: deploy/${{ steps.get-artifacts.outputs.artifact_1 }} | ||
| run: ${{ matrix.config.base_command }} staple | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Moved away from action for stapling since it's just two lines of code in the bash script. |
||
| env: | ||
| JAMULUS_BUILD_VERSION: ${{ needs.create_release.outputs.build_version }} | ||
| ARTIFACT_PATH: deploy/${{ steps.get-artifacts.outputs.artifact_1 }} | ||
|
|
||
| - name: Deploy Artifacts to Release | ||
| if: needs.create_release.outputs.publish_to_release == 'true' | ||
|
|
@@ -436,20 +437,6 @@ jobs: | |
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
|
||
| ## RELEASE PROCEDURE FOR: macOS App Store - storesigned pkg | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Seems as if notarization is not needed for app store submission - at least it fails. Therefore, removing this. |
||
| - name: Validate and Upload macOS Storesign Pkg | ||
| if: >- | ||
| steps.build.outputs.macos_store == 'true' && | ||
| needs.create_release.outputs.publish_to_release == 'true' | ||
| id: macos_validate_upload | ||
| run: ${{ matrix.config.base_command }} appstore-submit | ||
| env: | ||
| ARTIFACT_PATH: deploy/${{ steps.get-artifacts.outputs.artifact_2 }} | ||
| NOTARIZATION_USERNAME: ${{ secrets.NOTARIZATION_USERNAME }} | ||
| NOTARIZATION_PASSWORD: ${{ secrets.NOTARIZATION_PASSWORD }} | ||
| JAMULUS_BUILD_VERSION: ${{ needs.create_release.outputs.build_version }} | ||
| APPLE_TEAM_ID: XXXXXXXXXXX | ||
|
|
||
| - name: Perform CodeQL Analysis | ||
| if: matrix.config.run_codeql | ||
| uses: github/codeql-action/analyze@v3 | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.