Skip to content

Commit 0769e51

Browse files
Added doc generation to travis config (#274)
* added provider * added basic config * updated token * added before_deploy * updated branch
1 parent 41767bb commit 0769e51

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.travis.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ script:
1414
- mypy src --ignore-missing-imports
1515
notifications:
1616
email: false
17+
before_deploy:
18+
- "(python setup.py docs && touch docs/_build/html/.nojekyll)"
1719
deploy:
1820
- provider: pypi
1921
user: ChrisTimperley
@@ -22,3 +24,10 @@ deploy:
2224
on:
2325
tags: true
2426
python: '3.6'
27+
- provider: pages
28+
skip_cleanup: true
29+
local_dir: docs/_build/html
30+
github_token: "$GITHUB_TOKEN"
31+
on:
32+
branch: master
33+
python: '3.6'

0 commit comments

Comments
 (0)