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+ ---
12version : 2.1
23
34orbs :
4- python : circleci/python@0 .2.1
5+ python : circleci/python@1 .2.1
56
67jobs :
78 build_docs :
89 executor : python/default
910 steps :
1011 - 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
1515 - run :
1616 name : Build docs
17- command : cd docs/ && make html
17+ command : make -C docs html
1818 - persist_to_workspace :
1919 root : docs/_build/html
2020 paths : .
2121 - store_artifacts :
2222 path : docs/_build/html/
2323
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
2447
2548workflows :
2649 main :
2750 jobs :
2851 - 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