Skip to content

Commit 0e24474

Browse files
committed
fix: add timeout and better logging to notarization steps
1 parent 2803227 commit 0e24474

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.github/workflows/build-release.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,10 +147,18 @@ jobs:
147147
ditto -c -k --keepParent "${{ env.APP_NAME }}.app" "../notarization.zip"
148148
cd ..
149149
150+
# Show ZIP size
151+
ls -lh notarization.zip
152+
150153
echo "Submitting for notarization..."
151154
xcrun notarytool submit notarization.zip \
152155
--keychain-profile "notary-profile" \
153-
--wait
156+
--wait \
157+
--timeout 30m \
158+
2>&1 | tee notarization-output.txt
159+
160+
# Show result
161+
cat notarization-output.txt
154162
155163
echo "Stapling notarization ticket..."
156164
xcrun stapler staple "export/${{ env.APP_NAME }}.app"
@@ -180,9 +188,11 @@ jobs:
180188
181189
# Notarize the DMG
182190
echo "Notarizing DMG..."
191+
ls -lh "build/${{ env.APP_NAME }}-v${VERSION}.dmg"
183192
xcrun notarytool submit "build/${{ env.APP_NAME }}-v${VERSION}.dmg" \
184193
--keychain-profile "notary-profile" \
185-
--wait
194+
--wait \
195+
--timeout 30m
186196
187197
# Staple the DMG
188198
xcrun stapler staple "build/${{ env.APP_NAME }}-v${VERSION}.dmg"

0 commit comments

Comments
 (0)