Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
bc3e57d5
Commit
bc3e57d5
authored
Oct 22, 2019
by
Lysandre
Browse files
Multi version doc deployment
parent
e16d4684
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
3 deletions
+24
-3
.circleci/config.yml
.circleci/config.yml
+3
-3
.circleci/deploy.sh
.circleci/deploy.sh
+21
-0
No files found.
.circleci/config.yml
View file @
bc3e57d5
...
...
@@ -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
:
...
...
.circleci/deploy.sh
0 → 100755
View file @
bc3e57d5
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment