mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
deploy to .dev firebase projects. (#28171)
* deploy to .dev firebase projects. * Updated secrets for .dev web sites. * Fixed missing docs.*.io references.
This commit is contained in:
parent
007a415c2a
commit
d39a72516a
@ -27,9 +27,9 @@ task:
|
|||||||
env:
|
env:
|
||||||
SHARD: docs
|
SHARD: docs
|
||||||
# For uploading master docs to Firebase master branch staging site
|
# 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
|
# 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
|
docs_script: ./dev/bots/docs.sh
|
||||||
- name: deploy_gallery
|
- name: deploy_gallery
|
||||||
only_if: $CIRRUS_BRANCH == 'dev'
|
only_if: $CIRRUS_BRANCH == 'dev'
|
||||||
|
@ -62,9 +62,9 @@ function move_offline_into_place() {
|
|||||||
mv flutter.docs.zip doc/offline/flutter.docs.zip
|
mv flutter.docs.zip doc/offline/flutter.docs.zip
|
||||||
du -sh doc/offline/flutter.docs.zip
|
du -sh doc/offline/flutter.docs.zip
|
||||||
if [[ "$CIRRUS_BRANCH" == "stable" ]]; then
|
if [[ "$CIRRUS_BRANCH" == "stable" ]]; then
|
||||||
echo -e "<entry>\n <version>${FLUTTER_VERSION}</version>\n <url>https://docs.flutter.io/offline/flutter.docset.tar.gz</url>\n</entry>" > doc/offline/flutter.xml
|
echo -e "<entry>\n <version>${FLUTTER_VERSION}</version>\n <url>https://api.flutter.dev/offline/flutter.docset.tar.gz</url>\n</entry>" > doc/offline/flutter.xml
|
||||||
else
|
else
|
||||||
echo -e "<entry>\n <version>${FLUTTER_VERSION}</version>\n <url>https://master-docs.flutter.io/offline/flutter.docset.tar.gz</url>\n</entry>" > doc/offline/flutter.xml
|
echo -e "<entry>\n <version>${FLUTTER_VERSION}</version>\n <url>https://master-api.flutter.dev/offline/flutter.docset.tar.gz</url>\n</entry>" > doc/offline/flutter.xml
|
||||||
fi
|
fi
|
||||||
mv flutter.docset.tar.gz doc/offline/flutter.docset.tar.gz
|
mv flutter.docset.tar.gz doc/offline/flutter.docset.tar.gz
|
||||||
du -sh 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
|
if [[ -n "$CIRRUS_CI" && -z "$CIRRUS_PR" ]]; then
|
||||||
echo "This is not a pull request; considering whether to upload docs... (branch=$CIRRUS_BRANCH)"
|
echo "This is not a pull request; considering whether to upload docs... (branch=$CIRRUS_BRANCH)"
|
||||||
if [[ "$CIRRUS_BRANCH" == "master" ]]; then
|
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
|
# Disable search indexing on the master staging site so searches get only
|
||||||
# the stable site.
|
# the stable site.
|
||||||
echo -e "User-agent: *\nDisallow: /" > "$FLUTTER_ROOT/dev/docs/doc/robots.txt"
|
echo -e "User-agent: *\nDisallow: /" > "$FLUTTER_ROOT/dev/docs/doc/robots.txt"
|
||||||
export FIREBASE_TOKEN="$FIREBASE_MASTER_TOKEN"
|
export FIREBASE_TOKEN="$FIREBASE_MASTER_TOKEN"
|
||||||
deploy 5 master-docs-flutter-io
|
deploy 5 master-docs-flutter-dev
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$CIRRUS_BRANCH" == "stable" ]]; then
|
if [[ "$CIRRUS_BRANCH" == "stable" ]]; then
|
||||||
# Enable search indexing on the master staging site so searches get only
|
# Enable search indexing on the master staging site so searches get only
|
||||||
# the stable site.
|
# 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"
|
echo -e "# All robots welcome!" > "$FLUTTER_ROOT/dev/docs/doc/robots.txt"
|
||||||
export FIREBASE_TOKEN="$FIREBASE_PUBLIC_TOKEN"
|
export FIREBASE_TOKEN="$FIREBASE_PUBLIC_TOKEN"
|
||||||
deploy 5 docs-flutter-io
|
deploy 5 docs-flutter-dev
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user