mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
Re-enable docs uploading (#44454)
* Revert "Turn off docs upload temporarily (#44365) (#44413)"
This reverts commit 8f2ea9d0e9
.
* Re enables docs upload
This commit is contained in:
parent
eeb88f4385
commit
03ac37af08
@ -6,7 +6,7 @@ function deploy {
|
||||
local remaining_tries=$(($total_tries - 1))
|
||||
shift
|
||||
while [[ "$remaining_tries" > 0 ]]; do
|
||||
(cd "$FLUTTER_ROOT/dev/docs" && firebase deploy --token "$FIREBASE_TOKEN" --project "$@") && break
|
||||
(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)"
|
||||
sleep 5
|
||||
@ -15,7 +15,9 @@ function deploy {
|
||||
[[ "$remaining_tries" == 0 ]] && {
|
||||
echo "Command still failed after $total_tries tries: '$@'"
|
||||
cat firebase-debug.log || echo "Unable to show contents of firebase-debug.log."
|
||||
return 1
|
||||
# TODO(jackson): Return an error here when the Firebase service is more reliable.
|
||||
# https://github.com/flutter/flutter/issues/44452
|
||||
return 0
|
||||
}
|
||||
return 0
|
||||
}
|
||||
@ -122,10 +124,6 @@ fi
|
||||
# Ensure google webmaster tools can verify our site.
|
||||
cp "$FLUTTER_ROOT/dev/docs/google2ed1af765c529f57.html" "$FLUTTER_ROOT/dev/docs/doc"
|
||||
|
||||
# TEMPORARILY EXIT WITHOUT UPLOADING
|
||||
# TODO(gspencergoog): Renable once Firebase outage is resolved.
|
||||
exit 0
|
||||
|
||||
# Upload new API docs when running on Cirrus
|
||||
if [[ -n "$CIRRUS_CI" && -z "$CIRRUS_PR" ]]; then
|
||||
echo "This is not a pull request; considering whether to upload docs... (branch=$CIRRUS_BRANCH)"
|
||||
|
Loading…
Reference in New Issue
Block a user