Unverified Commit d6e308c5 authored by Christopher Fujino's avatar Christopher Fujino Committed by GitHub

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

parent 21cfed34
...@@ -9,7 +9,7 @@ function deploy { ...@@ -9,7 +9,7 @@ function deploy {
local total_tries="$1" local total_tries="$1"
local remaining_tries=$(($total_tries - 1)) local remaining_tries=$(($total_tries - 1))
shift 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 (cd "$FLUTTER_ROOT/dev/docs" && firebase --debug deploy --token "$FIREBASE_TOKEN" --project "$@") && break
remaining_tries=$(($remaining_tries - 1)) remaining_tries=$(($remaining_tries - 1))
echo "Error: Unable to deploy documentation to Firebase. Retrying in five seconds... ($remaining_tries tries left)" echo "Error: Unable to deploy documentation to Firebase. Retrying in five seconds... ($remaining_tries tries left)"
...@@ -103,7 +103,7 @@ function deploy_docs() { ...@@ -103,7 +103,7 @@ function deploy_docs() {
;; ;;
*) *)
>&2 echo "Docs deployment cannot be run on the $CIRRUS_BRANCH branch." >&2 echo "Docs deployment cannot be run on the $CIRRUS_BRANCH branch."
exit 1 exit 0
esac esac
} }
...@@ -160,6 +160,7 @@ if [[ -d "$FLUTTER_PUB_CACHE" ]]; then ...@@ -160,6 +160,7 @@ if [[ -d "$FLUTTER_PUB_CACHE" ]]; then
fi fi
generate_docs generate_docs
# Skip publishing docs for PRs and release candidate branches
if [[ -n "$CIRRUS_CI" && -z "$CIRRUS_PR" ]]; then if [[ -n "$CIRRUS_CI" && -z "$CIRRUS_PR" ]]; then
(cd "$FLUTTER_ROOT/dev/docs"; create_offline_zip) (cd "$FLUTTER_ROOT/dev/docs"; create_offline_zip)
# TODO(tvolkert): re-enable (https://github.com/flutter/flutter/issues/60646) # TODO(tvolkert): re-enable (https://github.com/flutter/flutter/issues/60646)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment