Skip to content

Commit 8231046

Browse files
committed
feat(travis): setup ci
1 parent ccd8321 commit 8231046

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed

‎.travis.yml‎

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
language: node_js
2+
node_js: lts/*
3+
branches:
4+
only:
5+
- master
6+
cache: npm
7+
before_script:
8+
- export TZ='Asia/Shanghai'
9+
- npm install -g hexo-cli
10+
install:
11+
- cd blog
12+
- npm install
13+
script:
14+
- hexo clean
15+
- hexo generate
16+
deploy:
17+
provider: pages
18+
local_dir: blog/public
19+
repo: rime/rime.github.io
20+
target_branch: master
21+
keep_history: false
22+
fqdn: rime.im
23+
skip_cleanup: true
24+
github_token: $GITHUB_TOKEN
25+
on:
26+
branch: master

‎blog/_config.yml‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,5 +77,4 @@ theme: freewill
7777
deploy:
7878
type: git
7979
repo: https://github.com/rime/rime.github.io.git
80-
8180
branch: master

0 commit comments

Comments
 (0)