From 2d3e3efe7a398a4e536345004433f00f7d8a7eee Mon Sep 17 00:00:00 2001 From: saturneric Date: Wed, 9 Oct 2019 03:25:20 +0800 Subject: [PATCH] Config. --- .travis.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .travis.yml 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