diff options
author | Ross Barnowski <rossbar@berkeley.edu> | 2020-10-01 14:50:01 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-01 12:50:01 -0700 |
commit | 9775f834f527b68c367c9bb2ad44804acf8a283d (patch) | |
tree | a33bac86d66dcfee2c1cbbcca8c554d6eee8aeb3 /.circleci/config.yml | |
parent | 015a90f520a0d1f0ef85d6084619021d3d0e2cd7 (diff) | |
download | networkx-9775f834f527b68c367c9bb2ad44804acf8a283d.tar.gz |
CI: Configure circleCI to deploy docs. (#4134)
Move devdoc deployment from TravisCI to circleCI
Diffstat (limited to '.circleci/config.yml')
-rw-r--r-- | .circleci/config.yml | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml index 53781693..fab599a8 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -51,3 +51,47 @@ jobs: - store_artifacts: path: doc/build/html + + - persist_to_workspace: + root: doc/build + paths: + - html + + deploy: + working_directory: ~/repo + docker: + - image: circleci/python:3.8.3-buster + + steps: + - attach_workspace: + at: /tmp/build + + - add_ssh_keys: + fingerprints: + - "e5:04:e6:c4:d6:c3:34:b9:02:e6:9f:25:1c:01:9e:e9" + + - run: + name: upload_devdocs + command: | + set -e + git clone git@github.com:networkx/documentation.git + cd documentation + rm -rf latest + cp -R /tmp/build/html latest + git config --global user.email "networkx-circleci-bot@nomail" + git config --global user.name "networkx-circleci-bot" + git config --global push.default simple; + git commit -am "Docs built from $CIRCLE_SHA1" + git push origin gh-pages + +workflows: + version: 2 + default: + jobs: + - build + - deploy: + requires: + - build + filters: + branches: + only: master |