File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -106,15 +106,16 @@ jobs:
106106
107107 # ----- macOS: bundle .app and (optionally) sign + dmg -----
108108 - name : Decode signing certificate
109- if : matrix.os == 'macos-latest' && env.APPLE_CERTIFICATE != ''
109+ if : matrix.os == 'macos-latest'
110+ shell : bash
110111 env :
111112 APPLE_CERTIFICATE : ${{ secrets.APPLE_CERTIFICATE }}
112- MACOS_PROVISION_PROFILE : ${{ secrets.MACOS_PROVISION_PROFILE }}
113113 run : |
114- echo "$ APPLE_CERTIFICATE" | base64 --decode > macos_signing_cert.p12
115- if [[ -n "$MACOS_PROVISION_PROFILE" ]]; then
116- echo "$MACOS_PROVISION_PROFILE" | base64 --decode > macos_provision_profile.mobileprovision
114+ if [[ -z "${ APPLE_CERTIFICATE:-}" ]]; then
115+ echo "No APPLE_CERTIFICATE; skipping signing setup."
116+ exit 0
117117 fi
118+ echo "$APPLE_CERTIFICATE" | base64 --decode > macos_signing_cert.p12
118119
119120 - name : Create and manage custom keychain
120121 if : matrix.os == 'macos-latest' && secrets.APPLE_CERTIFICATE != ''
You can’t perform that action at this time.
0 commit comments