Unverified Commit f216b606 authored by Sylvain Gugger's avatar Sylvain Gugger Committed by GitHub
Browse files

Fix deploy doc (#5246)

* Try with the same command

* Try like this
parent 49f6e7a3
...@@ -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
} }
......
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