File tree Expand file tree Collapse file tree 2 files changed +31
-0
lines changed Expand file tree Collapse file tree 2 files changed +31
-0
lines changed Original file line number Diff line number Diff line change 98
98
name : " Built documentation is available at:"
99
99
command : echo "${CIRCLE_BUILD_URL}/artifacts/${CIRCLE_NODE_INDEX}/${CIRCLE_WORKING_DIRECTORY/#\~/$HOME}/doc/build/html/index.html"
100
100
101
+ - deploy :
102
+ name : " Deploy new docs"
103
+ command : ./.circleci/deploy-docs.sh
104
+
101
105
docs-python27 :
102
106
docker :
103
107
- image : circleci/python:2.7
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ set -e
4
+
5
+ if [ " $CIRCLE_BRANCH " != " master" -o " $CIRCLE_PULL_REQUEST " != " " ]; then
6
+ # Upload docs only on master.
7
+ exit
8
+ fi
9
+
10
+ git clone
[email protected] :matplotlib/devdocs.git
11
+
12
+ cd devdocs
13
+
14
+ git checkout --orphan gh-pages || true
15
+ git reset --hard first_commit
16
+
17
+ cp -R ../doc/build/html/* .
18
+ touch .nojekyll
19
+
20
+ git config user.email " MatplotlibCircleBot@nomail"
21
+ git config user.name " MatplotlibCircleBot"
22
+ git config push.default simple
23
+
24
+ git add .
25
+ git commit -m " Docs build of $CIRCLE_SHA1 "
26
+
27
+ git push --set-upstream origin gh-pages --force
You can’t perform that action at this time.
0 commit comments