Skip to content

Commit d6e308c

Browse files
Don't fail docs-linux on release branches (flutter#64203)
1 parent 21cfed3 commit d6e308c

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

dev/bots/docs.sh

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ function deploy {
99
local total_tries="$1"
1010
local remaining_tries=$(($total_tries - 1))
1111
shift
12-
while [[ "$remaining_tries" > 0 ]]; do
12+
while [[ "$remaining_tries" -gt 0 ]]; do
1313
(cd "$FLUTTER_ROOT/dev/docs" && firebase --debug deploy --token "$FIREBASE_TOKEN" --project "$@") && break
1414
remaining_tries=$(($remaining_tries - 1))
1515
echo "Error: Unable to deploy documentation to Firebase. Retrying in five seconds... ($remaining_tries tries left)"
@@ -103,7 +103,7 @@ function deploy_docs() {
103103
;;
104104
*)
105105
>&2 echo "Docs deployment cannot be run on the $CIRRUS_BRANCH branch."
106-
exit 1
106+
exit 0
107107
esac
108108
}
109109

@@ -160,10 +160,11 @@ if [[ -d "$FLUTTER_PUB_CACHE" ]]; then
160160
fi
161161

162162
generate_docs
163+
# Skip publishing docs for PRs and release candidate branches
163164
if [[ -n "$CIRRUS_CI" && -z "$CIRRUS_PR" ]]; then
164-
(cd "$FLUTTER_ROOT/dev/docs"; create_offline_zip)
165-
# TODO(tvolkert): re-enable (https://github.com/flutter/flutter/issues/60646)
166-
# (cd "$FLUTTER_ROOT/dev/docs"; create_docset)
167-
(cd "$FLUTTER_ROOT/dev/docs"; move_offline_into_place)
168-
deploy_docs
165+
(cd "$FLUTTER_ROOT/dev/docs"; create_offline_zip)
166+
# TODO(tvolkert): re-enable (https://github.com/flutter/flutter/issues/60646)
167+
# (cd "$FLUTTER_ROOT/dev/docs"; create_docset)
168+
(cd "$FLUTTER_ROOT/dev/docs"; move_offline_into_place)
169+
deploy_docs
169170
fi

0 commit comments

Comments
 (0)