Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
8f8d6971
Commit
8f8d6971
authored
Nov 14, 2019
by
Lysandre
Browse files
[CI][DOC] Don't rebuild if folder exists.
parent
d7929899
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
.circleci/deploy.sh
.circleci/deploy.sh
+6
-2
No files found.
.circleci/deploy.sh
View file @
8f8d6971
...
@@ -5,8 +5,12 @@ function deploy_doc(){
...
@@ -5,8 +5,12 @@ function deploy_doc(){
git checkout
$1
git checkout
$1
if
[
!
-z
"
$2
"
]
if
[
!
-z
"
$2
"
]
then
then
echo
"Pushing version"
$2
if
[
-d
"
$DIRECTORY
"
]
;
then
make clean
&&
make html
&&
scp
-r
-oStrictHostKeyChecking
=
no _build/html
$doc
:
$dir
/
$2
echo
"Directory"
$2
"already exists"
else
echo
"Pushing version"
$2
make clean
&&
make html
&&
scp
-r
-oStrictHostKeyChecking
=
no _build/html
$doc
:
$dir
/
$2
fi
else
else
echo
"Pushing master"
echo
"Pushing master"
make clean
&&
make html
&&
scp
-r
-oStrictHostKeyChecking
=
no _build/html/
*
$doc
:
$dir
make clean
&&
make html
&&
scp
-r
-oStrictHostKeyChecking
=
no _build/html/
*
$doc
:
$dir
...
...
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