Skip to content

Commit

Permalink
circle config to push docs
Browse files Browse the repository at this point in the history
  • Loading branch information
choldgraf committed May 21, 2019
1 parent 20baa1d commit 195fbbf
Showing 1 changed file with 40 additions and 13 deletions.
53 changes: 40 additions & 13 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,46 @@
version: 2
version: 2.1
jobs:
build_docs:
docker:
- image: circleci/python:3.6-stretch
steps:
- build_site
- store_artifacts:
path: docs/_build/html/
destination: html

push_docs:
docker:
- image: circleci/python:3.6-stretch
steps:
# Add deployment key fingerprint for CircleCI to use for a push
- add_ssh_keys:
fingerprints:
# The SSH key fingerprint
- "c5:70:b9:1b:9a:cf:e3:88:25:9f:33:8e:ee:09:76:9f"

- build_site

- run:
name: Pushing documentation to gh-pages
command: |
pip install --user ghp-import
ghp-import -n -p docs/_build/html
workflows:
version: 2
default:
jobs:
- build_docs
- push_docs:
filters: # using regex filters requires the entire branch to match
branches:
only: # only branches matching the below regex filters will run
- master

commands:
build_site:
description: "Build the site with sphinx"
steps:
# Get our data and merge with upstream
- run: sudo apt-get update
Expand All @@ -24,15 +62,4 @@ jobs:
name: Build docs to store
command: |
cd docs
make html
- store_artifacts:
path: docs/_build/html/
destination: html


workflows:
version: 2
default:
jobs:
- build_docs
make html

0 comments on commit 195fbbf

Please sign in to comment.