Browse Source

Update travis config to build MkDocs documentation automatically

pull/251/head
Hironsan 5 years ago
parent
commit
7467e6110e
1 changed files with 15 additions and 0 deletions
  1. 15
      .travis.yml

15
.travis.yml

@ -1,11 +1,19 @@
language: minimal
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 +24,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