ci: allow delayed Apple notarization
This commit is contained in:
@@ -57,7 +57,7 @@ jobs:
|
|||||||
echo "SIGNING_IDENTITY=$signing_identity" >> "$GITHUB_ENV"
|
echo "SIGNING_IDENTITY=$signing_identity" >> "$GITHUB_ENV"
|
||||||
|
|
||||||
- name: Build, sign, notarize, and create appcast
|
- name: Build, sign, notarize, and create appcast
|
||||||
timeout-minutes: 110
|
timeout-minutes: 350
|
||||||
run: scripts/package_release.sh
|
run: scripts/package_release.sh
|
||||||
|
|
||||||
- name: Create GitHub release
|
- name: Create GitHub release
|
||||||
|
|||||||
@@ -92,14 +92,15 @@ SUBMISSION_ID=$(plutil -extract id raw -o - "$BUILD_ROOT/notary-submission.json"
|
|||||||
echo "Notarization submitted: $SUBMISSION_ID"
|
echo "Notarization submitted: $SUBMISSION_ID"
|
||||||
|
|
||||||
NOTARY_STATUS="In Progress"
|
NOTARY_STATUS="In Progress"
|
||||||
for attempt in {1..180}; do
|
NOTARY_MAX_ATTEMPTS=660
|
||||||
|
for attempt in $(seq 1 "$NOTARY_MAX_ATTEMPTS"); do
|
||||||
xcrun notarytool info "$SUBMISSION_ID" \
|
xcrun notarytool info "$SUBMISSION_ID" \
|
||||||
--apple-id "$APPLE_ID" \
|
--apple-id "$APPLE_ID" \
|
||||||
--team-id "$APPLE_TEAM_ID" \
|
--team-id "$APPLE_TEAM_ID" \
|
||||||
--password "$APPLE_APP_PASSWORD" \
|
--password "$APPLE_APP_PASSWORD" \
|
||||||
--output-format json > "$BUILD_ROOT/notary-status.json"
|
--output-format json > "$BUILD_ROOT/notary-status.json"
|
||||||
NOTARY_STATUS=$(plutil -extract status raw -o - "$BUILD_ROOT/notary-status.json")
|
NOTARY_STATUS=$(plutil -extract status raw -o - "$BUILD_ROOT/notary-status.json")
|
||||||
echo "Notarization status ($attempt/180): $NOTARY_STATUS"
|
echo "Notarization status ($attempt/$NOTARY_MAX_ATTEMPTS): $NOTARY_STATUS"
|
||||||
|
|
||||||
case "$NOTARY_STATUS" in
|
case "$NOTARY_STATUS" in
|
||||||
Accepted)
|
Accepted)
|
||||||
@@ -123,7 +124,7 @@ for attempt in {1..180}; do
|
|||||||
done
|
done
|
||||||
|
|
||||||
if [[ "$NOTARY_STATUS" != "Accepted" ]]; then
|
if [[ "$NOTARY_STATUS" != "Accepted" ]]; then
|
||||||
echo "Notarization did not finish within 90 minutes: $SUBMISSION_ID" >&2
|
echo "Notarization did not finish within 5.5 hours: $SUBMISSION_ID" >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user