.travis.yml 591 B

12345678910111213141516171819202122
  1. # Deploy to GitHub pages on commits to master
  2. #
  3. # 1. Clone current gh-pages branch into dist/
  4. # 2. Copy in new README
  5. # 3. Push dist/ directory to gh-pages branch
  6. #
  7. # Cloning the existing gh-pages branch ensures that we don't lose the
  8. # CNAME, _config.yaml, and any other files generated by gh-pages when
  9. # pushing the new README.
  10. script:
  11. - git clone --branch=gh-pages https://github.com/CodyReichert/awesome-cl dist
  12. - cp README.md dist/index.md
  13. deploy:
  14. provider: pages
  15. skip-cleanup: true
  16. github-token: $GH_TOKEN
  17. keep-history: true
  18. local-dir: dist
  19. on:
  20. branch: master