Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
3ca76098
Unverified
Commit
3ca76098
authored
Jun 20, 2019
by
Dan Field
Committed by
GitHub
Jun 20, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Backup docs (#34757)
parent
52e8efef
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
.cirrus.yml
.cirrus.yml
+2
-0
docs.sh
dev/bots/docs.sh
+11
-0
No files found.
.cirrus.yml
View file @
3ca76098
...
@@ -31,6 +31,8 @@ task:
...
@@ -31,6 +31,8 @@ task:
FIREBASE_MASTER_TOKEN
:
ENCRYPTED[eb768d18798fdc5abfe09b224e1724c4d82831d715ccf90df2c79d618c317216cbd99493278361f6fe7948b409b603f0]
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[37e8b82f167864cae9a3f4d2cf3f37dea331d9375c295327c45de524f6c588fa6f6d63e5784f10f6d43ce29689f36c92]
FIREBASE_PUBLIC_TOKEN
:
ENCRYPTED[37e8b82f167864cae9a3f4d2cf3f37dea331d9375c295327c45de524f6c588fa6f6d63e5784f10f6d43ce29689f36c92]
# For Uploading to GCS
GCS_SERVICE_ACCOUNT
:
ENCRYPTED[ca271fed014bfd5e4207c350e6567413574390b9d4152893e64231d9c09613e5c68e66ec8cb4b6025161c85efa057d65]
docs_script
:
./dev/bots/docs.sh
docs_script
:
./dev/bots/docs.sh
-
name
:
deploy_gallery
-
name
:
deploy_gallery
depends_on
:
depends_on
:
...
...
dev/bots/docs.sh
View file @
3ca76098
#!/bin/bash
#!/bin/bash
set
-e
set
-e
function
upload_gcs
()
{
echo
$GCS_SERVICE_ACCOUNT
>
${
HOME
}
/gcloud-service-key.json
gcloud auth activate-service-account
--key-file
=
${
HOME
}
/gcloud-service-key.json
gcloud
--quiet
config
set
project flutter-infra
gsutil
cp
-r
"
$FLUTTER_ROOT
/dev/docs"
gs://flutter_docs_backup/
${
CIRRUS_CHANGE_IN_REPO
}
/
}
function
deploy
{
function
deploy
{
local
total_tries
=
"
$1
"
local
total_tries
=
"
$1
"
local
remaining_tries
=
$((
$total_tries
-
1
))
local
remaining_tries
=
$((
$total_tries
-
1
))
...
@@ -125,6 +133,9 @@ cp "$FLUTTER_ROOT/dev/docs/google2ed1af765c529f57.html" "$FLUTTER_ROOT/dev/docs/
...
@@ -125,6 +133,9 @@ 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
"Uploading docs to GCS..."
upload_gcs
echo
"Updating
$CIRRUS_BRANCH
docs: https://master-api.flutter.dev/"
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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment