Skip to content

Commit d4afdfb

Browse files
Merge pull request #321 from QueryaHub/fix/release-yml-secrets-if
ci(release): fix Release workflow parse error for secrets in if
2 parents 6db9199 + 5e346cc commit d4afdfb

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎.github/workflows/release.yml‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,6 @@ jobs:
157157
run: flutter build macos --release
158158

159159
- name: Sign and notarize macOS app
160-
if: ${{ secrets.MACOS_SIGN_IDENTITY != '' && secrets.MACOS_NOTARY_KEY != '' }}
161160
env:
162161
MACOS_CERTIFICATE_P12: ${{ secrets.MACOS_CERTIFICATE_P12 }}
163162
MACOS_CERTIFICATE_PASSWORD: ${{ secrets.MACOS_CERTIFICATE_PASSWORD }}
@@ -168,6 +167,10 @@ jobs:
168167
MACOS_KEYCHAIN_PASSWORD: ${{ secrets.MACOS_KEYCHAIN_PASSWORD }}
169168
run: |
170169
set -euo pipefail
170+
if [ -z "${MACOS_SIGN_IDENTITY:-}" ] || [ -z "${MACOS_NOTARY_KEY:-}" ]; then
171+
echo "Skipping macOS signing/notarization — secrets not configured."
172+
exit 0
173+
fi
171174
APP="build/macos/Build/Products/Release/querya_desktop.app"
172175
test -d "$APP"
173176

0 commit comments

Comments
 (0)