Commit 8f8d6971 authored by Lysandre's avatar Lysandre
Browse files

[CI][DOC] Don't rebuild if folder exists.

parent d7929899
...@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment