You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
532 B

  1. language: python
  2. python:
  3. - "3.6"
  4. services:
  5. - docker
  6. install:
  7. - pip install mkdocs mkdocs-material
  8. script:
  9. - docker build --target=builder .
  10. before_deploy:
  11. - mkdocs build --verbose --clean
  12. deploy:
  13. - provider: script
  14. script: tools/cd.sh travis-${TRAVIS_BUILD_NUMBER}
  15. on:
  16. branch: master
  17. - provider: script
  18. script: tools/cd.sh ${TRAVIS_TAG}
  19. on:
  20. tags: true
  21. - provider: pages
  22. skip_cleanup: true
  23. github_token: $GITHUB_TOKEN
  24. local_dir: site
  25. on:
  26. branch: master