Fix iOS App Store upload validation
This commit is contained in:
parent
fd9ea84ea5
commit
0924e40463
7 changed files with 115 additions and 8 deletions
|
|
@ -458,11 +458,19 @@ jobs:
|
|||
find publish -type f -print | sort
|
||||
exit 1
|
||||
fi
|
||||
upload_log="${RUNNER_TEMP:-/tmp}/burrow-altool-ios-${BUILD_NUMBER}.log"
|
||||
set +e
|
||||
xcrun altool --upload-app \
|
||||
--type ios \
|
||||
--file "$ipa" \
|
||||
--apiKey "$ASC_API_KEY_ID" \
|
||||
--apiIssuer "$ASC_API_ISSUER_ID"
|
||||
--apiIssuer "$ASC_API_ISSUER_ID" 2>&1 | tee "$upload_log"
|
||||
altool_status=${PIPESTATUS[0]}
|
||||
set -e
|
||||
if (( altool_status != 0 )) || grep -Eq 'UPLOAD FAILED|Validation failed|ERROR:' "$upload_log"; then
|
||||
echo "::error ::altool reported upload validation failure for $ipa" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- name: Distribute iOS Build To TestFlight
|
||||
shell: bash
|
||||
|
|
|
|||
|
|
@ -212,11 +212,19 @@ jobs:
|
|||
if [[ "$artifact" == *.pkg ]]; then
|
||||
upload_type="macos"
|
||||
fi
|
||||
upload_log="${RUNNER_TEMP:-/tmp}/burrow-altool-${upload_type}-$(basename "$artifact").log"
|
||||
set +e
|
||||
xcrun altool --upload-app \
|
||||
--type "$upload_type" \
|
||||
--file "$artifact" \
|
||||
--apiKey "$ASC_API_KEY_ID" \
|
||||
--apiIssuer "$ASC_API_ISSUER_ID"
|
||||
--apiIssuer "$ASC_API_ISSUER_ID" 2>&1 | tee "$upload_log"
|
||||
altool_status=${PIPESTATUS[0]}
|
||||
set -e
|
||||
if (( altool_status != 0 )) || grep -Eq 'UPLOAD FAILED|Validation failed|ERROR:' "$upload_log"; then
|
||||
echo "::error ::altool reported upload validation failure for $artifact" >&2
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
|
||||
release-ios-testflight:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue