From cc882886fbeeae0e72c5ecb2a78603ee49c97129 Mon Sep 17 00:00:00 2001 From: wizardforcel <562826179@qq.com> Date: Mon, 29 Oct 2018 16:08:40 +0800 Subject: [PATCH] travis --- .travis.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..3811505 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,25 @@ +language: node_js +node_js: node + +install: + - npm install + +script: + - hexo g + +after_script: + - cd public + - git init + - git config user.name ${GH_UN} + - git config user.email ${GH_EMAIL} + - git add -A + - git commit -am "$(date "+%Y-%m-%d %H:%M:%S")" + - git push "https://${GH_TOKEN}@github.com/${GH_USER}/${GH_REPO}.git" master:${GH_BRANCH} -f + +env: + global: + - GH_UN=wizardforcel + - GH_EMAIL=562826179@qq.com + - GH_USER=it-ebooks + - GH_REPO=it-ebooks.github.io + - GH_BRANCH=master -- GitLab