Skip to content

Commit 2a5af46

Browse files
author
Zhili Yang
committed
add .travis.yml
1 parent 0bbaf7d commit 2a5af46

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

.travis.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
language: node_js
2+
node_js: stable
3+
4+
# S: Build Lifecycle
5+
install:
6+
- npm install
7+
8+
#before_script:
9+
# - npm install -g gulp
10+
11+
script:
12+
- hexo g
13+
14+
after_script:
15+
- cd ./public
16+
- git init
17+
- git config user.name "Systick"
18+
- git config user.email "zack.li@xbro.cn"
19+
- git add .
20+
- git commit -m "Update docs from travis_ci"
21+
- git push --force --quiet "https://${GH_TOKEN}@${GH_REF}" master:master
22+
# E: Build LifeCycle
23+
24+
branches:
25+
only:
26+
- blog-source
27+
env:
28+
global:
29+
- GH_REF: git@github.com:SysTick/systick.github.io.git

0 commit comments

Comments
 (0)