diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..35131a5 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,18 @@ +sudo: false +language: node_js +node_js: + - 10 # use nodejs v10 LTS +cache: npm +branches: + only: + - master # build master branch only +script: + - hexo generate # generate static files +deploy: + provider: pages + skip-cleanup: true + github-token: $GH_TOKEN + keep-history: true + on: + branch: master + local-dir: public \ No newline at end of file