"web/git@developer.sourcefind.cn:chenpangpang/ComfyUI.git" did not exist on "a6676384423b39dee66bc3833ef3415cd089602a"
Commit bc3e57d5 authored by Lysandre's avatar Lysandre
Browse files

Multi version doc deployment

parent e16d4684
......@@ -81,12 +81,12 @@ jobs:
- checkout
- run: sudo pip install --progress-bar off -r docs/requirements.txt
- run: sudo pip install --progress-bar off -r requirements.txt
- run: cd docs && make clean && make html && scp -r -oStrictHostKeyChecking=no _build/html/* $doc:$dir
- run: ./deploy.sh
workflow_filters: &workflow_filters
filters:
branches:
only:
- master
- deploy_doc
workflows:
version: 2
build_and_test:
......@@ -96,4 +96,4 @@ workflows:
- build_py3_tf
- build_py2_torch
- build_py2_tf
- deploy_doc: *workflow_filters
\ No newline at end of file
- deploy_doc: *workflow_filters
cd docs
function deploy_doc(){
echo "Creating doc at commit $1 and pushing to folder $2"
git checkout $1
if [ ! -z "$2" ]
then
echo "Pushing version" $2
make clean && make html && scp -r -oStrictHostKeyChecking=no _build/html $doc:$dir/$2
else
echo "Pushing master"
make clean && make html && scp -r -oStrictHostKeyChecking=no _build/html/* $doc:$dir
fi
}
deploy_doc "master"
deploy_doc "b33a385" v1.0.0
deploy_doc "fe02e45" v1.1.0
eploy_doc "89fd345" v1.2.0
deploy_doc "fc9faa8" v2.0.0
deploy_doc "3ddce1d" v2.1.1
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