File tree Expand file tree Collapse file tree 1 file changed +50
-1
lines changed Expand file tree Collapse file tree 1 file changed +50
-1
lines changed Original file line number Diff line number Diff line change 22
33version : 2
44jobs :
5- build :
5+
6+ build-docs :
67 working_directory : ~/repo
78 docker :
89 - image : circleci/python:3.8.5-buster
2829
2930 - store_artifacts :
3031 path : site/_build/html
32+
33+ - persist_to_workspace :
34+ root : site/_build
35+ paths : html
36+
37+ deploy-docs :
38+ working_directory : ~/repo
39+ docker :
40+ - image : circleci/python:3.8.5-buster
41+ steps :
42+ - checkout
43+
44+ - attach_workspace :
45+ at : site/_build
46+
47+ - run :
48+ name : install deploy deps
49+ command : |
50+ python3 -m pip install --user ghp-import
51+
52+ - run :
53+ name : configure git
54+ command : |
55+ git config --global user.name "ci-doc-deploy-bot"
56+ git config --global user.email "ci-doc-deploy-bot@nomail"
57+ git config --global push.default simple
58+
59+ - add_ssh_keys :
60+ fingerprints :
61+ # TODO: ADD FINGERPRINT FROM DEPLOY KEY WITH PUSH ACCESS HERE
62+
63+ - run :
64+ name : deploy to gh-pages
65+ command : |
66+ ghp-import -n -f -p -m "[skip ci] docs build of $CIRCLE_SHA1" site/_build/html
67+
68+
69+ workflows :
70+ version : 2
71+ build :
72+ jobs :
73+ - build-docs
74+ - deploy-docs :
75+ requires :
76+ - build-docs
77+ filters :
78+ branches :
79+ only : master
You can’t perform that action at this time.
0 commit comments