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
Hide 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 {
local
total_tries
=
"
$1
"
local
remaining_tries
=
$((
$total_tries
-
1
))
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
remaining_tries
=
$((
$remaining_tries
-
1
))
echo
"Error: Unable to deploy documentation to Firebase. Retrying in five seconds... (
$remaining_tries
tries left)"
...
...
@@ -103,7 +103,7 @@ function deploy_docs() {
;;
*
)
>
&2
echo
"Docs deployment cannot be run on the
$CIRRUS_BRANCH
branch."
exit
1
exit
0
esac
}
...
...
@@ -160,10 +160,11 @@ if [[ -d "$FLUTTER_PUB_CACHE" ]]; then
fi
generate_docs
# Skip publishing docs for PRs and release candidate branches
if
[[
-n
"
$CIRRUS_CI
"
&&
-z
"
$CIRRUS_PR
"
]]
;
then
(
cd
"
$FLUTTER_ROOT
/dev/docs"
;
create_offline_zip
)
# TODO(tvolkert): re-enable (https://github.com/flutter/flutter/issues/60646)
# (cd "$FLUTTER_ROOT/dev/docs"; create_docset)
(
cd
"
$FLUTTER_ROOT
/dev/docs"
;
move_offline_into_place
)
deploy_docs
(
cd
"
$FLUTTER_ROOT
/dev/docs"
;
create_offline_zip
)
# TODO(tvolkert): re-enable (https://github.com/flutter/flutter/issues/60646)
# (cd "$FLUTTER_ROOT/dev/docs"; create_docset)
(
cd
"
$FLUTTER_ROOT
/dev/docs"
;
move_offline_into_place
)
deploy_docs
fi
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