File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed
Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff 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
160160fi
161161
162162generate_docs
163+ # Skip publishing docs for PRs and release candidate branches
163164if [[ -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
169170fi
You can’t perform that action at this time.
0 commit comments