Skip to content

Commit b18049c

Browse files
committed
Add gh-pages deployment for mkdocs from Travis
1 parent ee83d23 commit b18049c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.travis.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,13 @@ jobs:
2727
script:
2828
- cp README.md docs/README.md
2929
- poetry run mkdocs build
30+
deploy:
31+
- provider: pages
32+
skip_cleanup: true
33+
local_dir: build
34+
github_token: "$PAGES_GITHUB_API_TOKEN"
35+
on:
36+
branch: master
3037
install:
3138
- pip install poetry tox
3239
script:
@@ -37,3 +44,8 @@ branches:
3744
- gh-pages
3845
notifications:
3946
email: false
47+
env:
48+
global:
49+
# Permissions: public_repo
50+
# travis encrypt --pro PAGES_GITHUB_API_TOKEN=<value>
51+
- secure: "X2mgTFLOKwPpWqYMtcPxeGduDrXcKZN9Nwg/90TrzZU07+hNTm5nfd4WZxnBK1B/EZLysetBMMtovVxxtI84mYOMnY+gOTp37AlrY79dldz7nRD5R5ECOvMegQ+cndJ4OAvR2eJm4WsHSBMWsxx4a6NdX/jJI4iAg8CxNdPopO8EsjInHtA8ANmUkJKJyVnnUbe/Un4c713rwnB7nbILiKDqCgkZwhsF34e1Ft7oaJ0XKZg2e/h0DNqseSMwp2HDi/Ti5Y4eQlSYHnPshscxRV21EVlhDqNS0opxgyKd14AFSV3bkxmbD8hzn7VEHSVmkL2PHEd3atIqcGa/VwIw4bZWqTPtHR4YqJeKsnBPLPlQOZy3097rtuRVAPs8OuoOOm7OTss0INRFav8fOY5zq3aZqdywQoLZuDbJOpHz7idZyXwuQKUDxsXKncjoR3XoFhqhLxVUvj6zjXWFSRPc5e/+f17zBIQhr0BQJ/IPIRj3yFdnDGElCpBwJLs5KQM0Ay3NLygvZ4yb4b73m0VgdM/oC0aOw99oElimyllbeSSZzRoPzk3PX/gg45acerGNGbZlDQF363xCjqJB4I7c0GlhQW4vGf+rkpFnFfXZqxDMKVlUmGCpV5QITCqcP2U042eF+/zcxj//F7c4kqyLB8Tz1ktwmQEI/Qi7Y4cMuKE="

0 commit comments

Comments
 (0)