Browse Source

Update travis config to build MkDocs documentation automatically

pull/251/head
Hironsan 5 years ago
parent
commit
ed2791eed0
1 changed files with 17 additions and 1 deletions
  1. 18
      .travis.yml

18
.travis.yml

@ -1,11 +1,20 @@
language: minimal
language: python
python:
- "3.6"
services:
- docker
install:
- pip install mkdocs mkdocs-material
script:
- docker build --target=builder .
before_deploy:
- mkdocs build --verbose --clean
deploy:
- provider: script
script: tools/cd.sh travis-${TRAVIS_BUILD_NUMBER}
@ -16,3 +25,10 @@ deploy:
script: tools/cd.sh ${TRAVIS_TAG}
on:
tags: true
- provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
local_dir: site
on:
branch: master
Loading…
Cancel
Save