.travis.yml 884 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. # == INSTRUCTIONS FOR SETTING UP TRAVIS (and GitHub Pages) ==
  2. #
  3. # 1. Find this repository in your Travis-CI dashboard.
  4. # open settings and add an environment variable called
  5. # GITHUB_ACCESS_TOKEN and set it to your personal access token.addons:
  6. # See: https://help.github.com/en/articles/creating-a-personal-access-token-for-the-command-line
  7. #
  8. # **DO NOT TURN ON 'Display value in build log'!!!!**
  9. #
  10. # 2. Push the code to the repository.
  11. # 3. Set the GitHub Pages source in the GitHub repository settings to the
  12. # gh-pages branch.
  13. language: node_js
  14. node_js:
  15. - "12"
  16. env:
  17. - DEPLOY_ENV=POSTWOMAN_IO
  18. cache:
  19. directories:
  20. - "node_modules"
  21. branches:
  22. only:
  23. - "master"
  24. install:
  25. - "npm install firebase-tools"
  26. - "npm install"
  27. - "npm run generate"
  28. notifications:
  29. webhooks: https://www.travisbuddy.com
  30. after_success:
  31. - firebase deploy --token $FIREBASE_TOKEN