Don't fail docs-linux on release branches (#64203)

This commit is contained in:
Christopher Fujino 2020-08-19 18:16:05 -07:00 committed by GitHub
parent 21cfed34d4
commit d6e308c578
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,7 +9,7 @@ function deploy {
local total_tries="$1"
local remaining_tries=$(($total_tries - 1))
shift
while [[ "$remaining_tries" > 0 ]]; do
while [[ "$remaining_tries" -gt 0 ]]; do
(cd "$FLUTTER_ROOT/dev/docs" && firebase --debug deploy --token "$FIREBASE_TOKEN" --project "$@") && break
remaining_tries=$(($remaining_tries - 1))
echo "Error: Unable to deploy documentation to Firebase. Retrying in five seconds... ($remaining_tries tries left)"
@ -103,7 +103,7 @@ function deploy_docs() {
;;
*)
>&2 echo "Docs deployment cannot be run on the $CIRRUS_BRANCH branch."
exit 1
exit 0
esac
}
@ -160,10 +160,11 @@ if [[ -d "$FLUTTER_PUB_CACHE" ]]; then
fi
generate_docs
# Skip publishing docs for PRs and release candidate branches
if [[ -n "$CIRRUS_CI" && -z "$CIRRUS_PR" ]]; then
(cd "$FLUTTER_ROOT/dev/docs"; create_offline_zip)
# TODO(tvolkert): re-enable (https://github.com/flutter/flutter/issues/60646)
# (cd "$FLUTTER_ROOT/dev/docs"; create_docset)
(cd "$FLUTTER_ROOT/dev/docs"; move_offline_into_place)
deploy_docs
(cd "$FLUTTER_ROOT/dev/docs"; create_offline_zip)
# TODO(tvolkert): re-enable (https://github.com/flutter/flutter/issues/60646)
# (cd "$FLUTTER_ROOT/dev/docs"; create_docset)
(cd "$FLUTTER_ROOT/dev/docs"; move_offline_into_place)
deploy_docs
fi