-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
49 lines (41 loc) · 865 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
language: node_js
node_js: stable
#cache
cache:
directories:
- "node_modules"
# 通知
notifications:
email:
recipients:
on_success: never
on_failure: always
# 指定分支
# branches:
# only:
# - develop
before_install:
- npm install -g hexo
- npm install -g hexo-cli
- npm install -g gulp
install:
- npm install
script:
# - hexo clean
# - hexo generate
# - npm run generate
- npm run build
after_success:
# - hexo deploy
- cd ./public
- git init
- git config --global user.name '成雨'
- git config --global user.email '[email protected]'
- git add .
- git commit -m "generate static resources, triggerd by travis ci"
- git push --force "https://aikeProject:${REPO_TOKEN}@${GH_REF}" master
# 指定环境变量
env:
global:
- GH_REF: github.com/aikeProject/aikeProject.github.io.git