Skip to content

deploy to github-pages #61

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Oct 28, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 16 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,31 @@ jobs:
steps:
- install
- run: mkdocs build
- add_ssh_keys:
# tell CI to use openworm-bot@github's ssh key (for deploy permissions)
# https://circleci.com/docs/2.0/add-ssh-key/
fingerprints:
- "ad:f1:51:b7:68:cb:19:08:b2:7d:63:e3:eb:79:1a:63"
- deploy:
command: |
if [ "${CIRCLE_BRANCH}" == "master" ]; then
mkdocs gh-deploy
fi
- store_artifacts:
path: site # could directly deploy this directory instead?
path: site

workflows:
version: 2
test:
jobs:
- mkdocs
- mkdocs:
filters:
branches:
ignore: /^gh-pages/ # no tests exist on deployed pages branch
poll:
triggers:
- schedule:
# every hour
cron: "0 * * * *"
cron: "0 * * * *" # every hour
filters:
branches:
only:
Expand Down
1 change: 1 addition & 0 deletions CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
docs.openworm.org
1 change: 1 addition & 0 deletions docs/CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
docs.openworm.org