Skip to content

Commit 67a92ea

Browse files
authored
Update macOS signing logic in workflow
Modify macOS signing step to skip if no certificate is provided.
1 parent 033edd9 commit 67a92ea

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/build_and_release_all.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff 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 != ''

0 commit comments

Comments
 (0)