Actually update docs on dev branch (#14357)
This commit is contained in:
parent
6e87292bba
commit
45e81140c3
@ -1,6 +1,8 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
echo "Running docs.sh"
|
||||||
|
|
||||||
# If you want to run this script locally, make sure you run it from
|
# If you want to run this script locally, make sure you run it from
|
||||||
# the root of the flutter repository.
|
# the root of the flutter repository.
|
||||||
export FLUTTER_ROOT="$PWD"
|
export FLUTTER_ROOT="$PWD"
|
||||||
@ -32,10 +34,12 @@ cp dev/docs/google2ed1af765c529f57.html dev/docs/doc
|
|||||||
|
|
||||||
# Upload new API docs when on Travis
|
# Upload new API docs when on Travis
|
||||||
if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
|
if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
|
||||||
if [ "$TRAVIS_BRANCH" == "master" -o "$TRAVIS_BRANCH" == "alpha" ]; then
|
echo "This is not a pull request; considering whether to upload docs... (branch=$TRAVIS_BRANCH)"
|
||||||
|
if [ "$TRAVIS_BRANCH" == "master" -o "$TRAVIS_BRANCH" == "dev" ]; then
|
||||||
cd dev/docs
|
cd dev/docs
|
||||||
|
|
||||||
if [ "$TRAVIS_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
|
echo -e "User-agent: *\nDisallow: /" > doc/robots.txt
|
||||||
while : ; do
|
while : ; do
|
||||||
firebase deploy --project master-docs-flutter-io && break
|
firebase deploy --project master-docs-flutter-io && break
|
||||||
@ -45,6 +49,7 @@ if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$TRAVIS_BRANCH" == "dev" ]; then
|
if [ "$TRAVIS_BRANCH" == "dev" ]; then
|
||||||
|
echo "Updating dev docs: https://docs.flutter.io/"
|
||||||
while : ; do
|
while : ; do
|
||||||
firebase deploy --project docs-flutter-io && break
|
firebase deploy --project docs-flutter-io && break
|
||||||
echo Error: Unable to deploy documentation to firebase. Retrying in five seconds...
|
echo Error: Unable to deploy documentation to firebase. Retrying in five seconds...
|
||||||
|
Loading…
x
Reference in New Issue
Block a user