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
d6e308c5
Unverified
Commit
d6e308c5
authored
Aug 20, 2020
by
Christopher Fujino
Committed by
GitHub
Aug 20, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't fail docs-linux on release branches (#64203)
parent
21cfed34
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
docs.sh
dev/bots/docs.sh
+8
-7
No files found.
dev/bots/docs.sh
View file @
d6e308c5
...
@@ -9,7 +9,7 @@ function deploy {
...
@@ -9,7 +9,7 @@ function deploy {
local
total_tries
=
"
$1
"
local
total_tries
=
"
$1
"
local
remaining_tries
=
$((
$total_tries
-
1
))
local
remaining_tries
=
$((
$total_tries
-
1
))
shift
shift
while
[[
"
$remaining_tries
"
>
0
]]
;
do
while
[[
"
$remaining_tries
"
-gt
0
]]
;
do
(
cd
"
$FLUTTER_ROOT
/dev/docs"
&&
firebase
--debug
deploy
--token
"
$FIREBASE_TOKEN
"
--project
"
$@
"
)
&&
break
(
cd
"
$FLUTTER_ROOT
/dev/docs"
&&
firebase
--debug
deploy
--token
"
$FIREBASE_TOKEN
"
--project
"
$@
"
)
&&
break
remaining_tries
=
$((
$remaining_tries
-
1
))
remaining_tries
=
$((
$remaining_tries
-
1
))
echo
"Error: Unable to deploy documentation to Firebase. Retrying in five seconds... (
$remaining_tries
tries left)"
echo
"Error: Unable to deploy documentation to Firebase. Retrying in five seconds... (
$remaining_tries
tries left)"
...
@@ -103,7 +103,7 @@ function deploy_docs() {
...
@@ -103,7 +103,7 @@ function deploy_docs() {
;;
;;
*
)
*
)
>
&2
echo
"Docs deployment cannot be run on the
$CIRRUS_BRANCH
branch."
>
&2
echo
"Docs deployment cannot be run on the
$CIRRUS_BRANCH
branch."
exit
1
exit
0
esac
esac
}
}
...
@@ -160,6 +160,7 @@ if [[ -d "$FLUTTER_PUB_CACHE" ]]; then
...
@@ -160,6 +160,7 @@ if [[ -d "$FLUTTER_PUB_CACHE" ]]; then
fi
fi
generate_docs
generate_docs
# Skip publishing docs for PRs and release candidate branches
if
[[
-n
"
$CIRRUS_CI
"
&&
-z
"
$CIRRUS_PR
"
]]
;
then
if
[[
-n
"
$CIRRUS_CI
"
&&
-z
"
$CIRRUS_PR
"
]]
;
then
(
cd
"
$FLUTTER_ROOT
/dev/docs"
;
create_offline_zip
)
(
cd
"
$FLUTTER_ROOT
/dev/docs"
;
create_offline_zip
)
# TODO(tvolkert): re-enable (https://github.com/flutter/flutter/issues/60646)
# TODO(tvolkert): re-enable (https://github.com/flutter/flutter/issues/60646)
...
...
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