[CI][DOC] Don't rebuild if folder exists.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user