"docs/vscode:/vscode.git/clone" did not exist on "7e73c128055a61c4232f145ff9ffb99a56928510"
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(){
echo "Directory" $2 "already exists"
else
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
else
echo "Pushing master"
echo "Pushing stable"
make clean && make html && scp -r -oStrictHostKeyChecking=no _build/html/* $doc:$dir
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