.travis.yml 543 字节
Newer Older
W
travis  
wizardforcel 已提交
1
language: node_js
W
wizardforcel 已提交
2
node_js: 12
W
travis  
wizardforcel 已提交
3 4 5 6 7 8 9 10 11

install:
  - npm install

script:
  - hexo g

after_script:
  - cd public
飞龙 已提交
12
  - touch .nojekyll
W
wizardforcel 已提交
13
  - ls -l
W
travis  
wizardforcel 已提交
14 15 16 17 18
  - 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")"
W
wizardforcel 已提交
19
  - git push "https://oauth2:${GH_TOKEN}@github.com/${GH_USER}/${GH_REPO}.git" master:${GH_BRANCH} -f
W
travis  
wizardforcel 已提交
20 21 22 23 24 25 26 27
  
env:
  global:
    - GH_UN=wizardforcel
    - GH_EMAIL=562826179@qq.com
    - GH_USER=it-ebooks
    - GH_REPO=it-ebooks.github.io
    - GH_BRANCH=master