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
f216b606
Unverified
Commit
f216b606
authored
Jun 24, 2020
by
Sylvain Gugger
Committed by
GitHub
Jun 24, 2020
Browse files
Fix deploy doc (#5246)
* Try with the same command * Try like this
parent
49f6e7a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
.circleci/deploy.sh
.circleci/deploy.sh
+7
-2
No files found.
.circleci/deploy.sh
View file @
f216b606
...
@@ -9,10 +9,15 @@ function deploy_doc(){
...
@@ -9,10 +9,15 @@ function deploy_doc(){
echo
"Directory"
$2
"already exists"
echo
"Directory"
$2
"already exists"
else
else
echo
"Pushing version"
$2
echo
"Pushing version"
$2
make clean
&&
make html
&&
scp
-r
-oStrictHostKeyChecking
=
no _build/html
$doc
:
$dir
/
$2
make clean
&&
make html
if
[
"
$2
"
==
"master"
]
;
then
scp
-r
-oStrictHostKeyChecking
=
no _build/html/
*
$doc
:
$dir
/
$2
/
else
scp
-r
-oStrictHostKeyChecking
=
no _build/html
$doc
:
$dir
/
$2
fi
fi
fi
else
else
echo
"Pushing
master
"
echo
"Pushing
stable
"
make clean
&&
make html
&&
scp
-r
-oStrictHostKeyChecking
=
no _build/html/
*
$doc
:
$dir
make clean
&&
make html
&&
scp
-r
-oStrictHostKeyChecking
=
no _build/html/
*
$doc
:
$dir
fi
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