Skip to content

Commit 98fe4ec

Browse files
committed
Add a deployment step to gh-pages branch
Following the instructions from CircleCI's blog https://circleci.com/blog/deploying-documentation-to-github-pages-with-continuous-integration/
1 parent 0e32720 commit 98fe4ec

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.circleci/config.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,37 @@ jobs:
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
47+
2448
workflows:
2549
main:
2650
jobs:
2751
- build_docs
52+
- deploy:
53+
requires:
54+
- build_docs
55+
filters:
56+
branches:
57+
only: main

0 commit comments

Comments
 (0)