From d39a72516a6fee55abf248a651feddb542f55712 Mon Sep 17 00:00:00 2001 From: "Ray Rischpater, KF6GPE" Date: Thu, 21 Feb 2019 21:21:43 -0800 Subject: [PATCH] deploy to .dev firebase projects. (#28171) * deploy to .dev firebase projects. * Updated secrets for .dev web sites. * Fixed missing docs.*.io references. --- .cirrus.yml | 4 ++-- dev/bots/docs.sh | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.cirrus.yml b/.cirrus.yml index 83af9d1f6fc..66cab829d46 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -27,9 +27,9 @@ task: env: SHARD: docs # For uploading master docs to Firebase master branch staging site - FIREBASE_MASTER_TOKEN: ENCRYPTED[37e8b82f167864cae9a3f4d2cf3f37dea331d9375c295327c45de524f6c588fa6f6d63e5784f10f6d43ce29689f36c92] + FIREBASE_MASTER_TOKEN: ENCRYPTED[eb768d18798fdc5abfe09b224e1724c4d82831d715ccf90df2c79d618c317216cbd99493278361f6fe7948b409b603f0] # For uploading beta docs to Firebase public live site - FIREBASE_PUBLIC_TOKEN: ENCRYPTED[c422da192f06da7b4449ca8e7aa866dabeb8a0f8d7488497c2e7e447e6fd31d917e6c813db081dc4e2a7a63afdf41864] + FIREBASE_PUBLIC_TOKEN: ENCRYPTED[37e8b82f167864cae9a3f4d2cf3f37dea331d9375c295327c45de524f6c588fa6f6d63e5784f10f6d43ce29689f36c92] docs_script: ./dev/bots/docs.sh - name: deploy_gallery only_if: $CIRRUS_BRANCH == 'dev' diff --git a/dev/bots/docs.sh b/dev/bots/docs.sh index f15ad8f5358..05ee7ae8aeb 100755 --- a/dev/bots/docs.sh +++ b/dev/bots/docs.sh @@ -62,9 +62,9 @@ function move_offline_into_place() { mv flutter.docs.zip doc/offline/flutter.docs.zip du -sh doc/offline/flutter.docs.zip if [[ "$CIRRUS_BRANCH" == "stable" ]]; then - echo -e "\n ${FLUTTER_VERSION}\n https://docs.flutter.io/offline/flutter.docset.tar.gz\n" > doc/offline/flutter.xml + echo -e "\n ${FLUTTER_VERSION}\n https://api.flutter.dev/offline/flutter.docset.tar.gz\n" > doc/offline/flutter.xml else - echo -e "\n ${FLUTTER_VERSION}\n https://master-docs.flutter.io/offline/flutter.docset.tar.gz\n" > doc/offline/flutter.xml + echo -e "\n ${FLUTTER_VERSION}\n https://master-api.flutter.dev/offline/flutter.docset.tar.gz\n" > doc/offline/flutter.xml fi mv flutter.docset.tar.gz doc/offline/flutter.docset.tar.gz du -sh doc/offline/flutter.docset.tar.gz @@ -125,21 +125,21 @@ cp "$FLUTTER_ROOT/dev/docs/google2ed1af765c529f57.html" "$FLUTTER_ROOT/dev/docs/ 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" ]]; then - echo "Updating $CIRRUS_BRANCH docs: https://master-docs.flutter.io/" + echo "Updating $CIRRUS_BRANCH docs: https://master-api.flutter.dev/" # Disable search indexing on the master staging site so searches get only # the stable site. echo -e "User-agent: *\nDisallow: /" > "$FLUTTER_ROOT/dev/docs/doc/robots.txt" export FIREBASE_TOKEN="$FIREBASE_MASTER_TOKEN" - deploy 5 master-docs-flutter-io + deploy 5 master-docs-flutter-dev fi if [[ "$CIRRUS_BRANCH" == "stable" ]]; then # Enable search indexing on the master staging site so searches get only # the stable site. - echo "Updating $CIRRUS_BRANCH docs: https://docs.flutter.io/" + echo "Updating $CIRRUS_BRANCH docs: https://api.flutter.dev/" echo -e "# All robots welcome!" > "$FLUTTER_ROOT/dev/docs/doc/robots.txt" export FIREBASE_TOKEN="$FIREBASE_PUBLIC_TOKEN" - deploy 5 docs-flutter-io + deploy 5 docs-flutter-dev fi fi