File tree Expand file tree Collapse file tree 1 file changed +35
-6
lines changed Expand file tree Collapse file tree 1 file changed +35
-6
lines changed Original file line number Diff line number Diff line change
1
+ ---
1
2
version : 2.1
2
3
3
4
orbs :
4
- python : circleci/python@0 .2.1
5
+ python : circleci/python@1 .2.1
5
6
6
7
jobs :
7
8
build_docs :
8
9
executor : python/default
9
10
steps :
10
11
- checkout
11
- - python/install-deps
12
- - run :
13
- name : install theme
14
- command : python -m pip install --user -ve .
12
+ - python/install-packages :
13
+ pkg-manager : pip-dist
14
+ pip-dependency-file : docs/requirements.txt
15
15
- run :
16
16
name : Build docs
17
- command : cd docs/ && make html
17
+ command : make -C docs html
18
18
- persist_to_workspace :
19
19
root : docs/_build/html
20
20
paths : .
21
21
- store_artifacts :
22
22
path : docs/_build/html/
23
23
24
+ deploy :
25
+ docker :
26
+ - image : " node:8.10.0"
27
+ steps :
28
+ - attach_workspace :
29
+ at : html
30
+ - run :
31
+ name : Install and configure dependencies
32
+ command : |
33
+ npm install -g --silent gh-pages@2.0.1
34
+ git config user.email "MatplotlibCircleBot@nomail"
35
+ git config user.name "MatplotlibCircleBot"
36
+ - add_ssh_keys :
37
+ fingerprints :
38
+ - " 25:2e:77:93:7e:0e:af:77:b0:be:e7:fe:86:2c:5b:96"
39
+ - run :
40
+ name : " Deploy new docs"
41
+ command : |
42
+ touch html/.nojekyll # Disable jekyll builds on GitHub.
43
+ gh-pages \
44
+ --dotfiles \
45
+ --message "[skip ci] Doc build of $CIRCLE_SHA1" \
46
+ --dist html
24
47
25
48
workflows :
26
49
main :
27
50
jobs :
28
51
- build_docs
52
+ - deploy :
53
+ requires :
54
+ - build_docs
55
+ filters :
56
+ branches :
57
+ only : main
You can’t perform that action at this time.
0 commit comments