Revert "Move docs and gallery deployment to Cirrus (#19925)" (#20003)

This reverts commit c36032c65f, because
we're missing some credentials for pushing the gallery.

Submitting TBR to unbreak the build.

TBR=tvolkert
This commit is contained in:
Greg Spencer
2018-07-30 12:35:15 -07:00
committed by GitHub
parent cded7efbd0
commit 711ecf7f58
4 changed files with 20 additions and 205 deletions

View File

@@ -8,6 +8,8 @@ echo "Running docs.sh"
export FLUTTER_ROOT="$PWD"
export PATH="$PWD/bin:$PATH"
# This is called from travis_upload.sh on Travis.
# Make sure dart is installed
bin/flutter --version
@@ -31,13 +33,13 @@ bin/cache/dart-sdk/bin/dart dev/tools/java_and_objc_doc.dart
# Ensure google webmaster tools can verify our site.
cp dev/docs/google2ed1af765c529f57.html dev/docs/doc
# Upload new API docs when 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)"
if [[ "$CIRRUS_BRANCH" == "master" || "$CIRRUS_BRANCH" == "beta" ]]; then
# Upload new API docs when on Travis
if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
echo "This is not a pull request; considering whether to upload docs... (branch=$TRAVIS_BRANCH)"
if [ "$TRAVIS_BRANCH" == "master" -o "$TRAVIS_BRANCH" == "beta" ]; then
cd dev/docs
if [[ "$CIRRUS_BRANCH" == "master" ]]; then
if [ "$TRAVIS_BRANCH" == "master" ]; then
echo "Updating master docs: https://master-docs-flutter-io.firebaseapp.com/"
echo -e "User-agent: *\nDisallow: /" > doc/robots.txt
while : ; do
@@ -47,7 +49,7 @@ if [[ -n "$CIRRUS_CI" && -z "$CIRRUS_PR" ]]; then
done
fi
if [[ "$CIRRUS_BRANCH" == "beta" ]]; then
if [ "$TRAVIS_BRANCH" == "beta" ]; then
echo "Updating beta docs: https://docs.flutter.io/"
while : ; do
firebase deploy --project docs-flutter-io && break