From 8a387d040eb7aee50181d589ce3ebc09e8511cfa Mon Sep 17 00:00:00 2001 From: Tobias Hagemann Date: Thu, 5 Aug 2021 14:52:48 +0200 Subject: [PATCH] added notarization step to mac-dmg --- .github/workflows/build.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ef1d7fd40..ae752f12f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -359,7 +359,7 @@ jobs: mac-dmg: name: Build Cryptomator.dmg - runs-on: macos-latest + runs-on: macos-11 needs: [mac-app, metadata] steps: - uses: actions/checkout@v2 @@ -400,6 +400,15 @@ jobs: Cryptomator-${VERSION_NO}.dmg dmg env: VERSION_NO: ${{ needs.metadata.outputs.versionNum }} + - name: Notarize .dmg + env: + NOTARIZATION_APPLE_ID: ${{ secrets.MACOS_NOTARIZATION_APPLE_ID }} + NOTARIZATION_PW: ${{ secrets.MACOS_NOTARIZATION_PW }} + NOTARIZATION_TEAM_ID: ${{ secrets.MACOS_NOTARIZATION_TEAM_ID }} + run: > + sudo xcode-select -s /Applications/Xcode_13.0.app + xcrun notarytool submit Cryptomator-*.dmg --apple-id ${NOTARIZATION_APPLE_ID} --password ${NOTARIZATION_PW} --team-id ${NOTARIZATION_TEAM_ID} --wait + xcrun stapler staple Cryptomator-*.dmg - name: Upload mac-dmg uses: actions/upload-artifact@v2 with: