-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
40 lines (38 loc) · 880 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
language: node_js
node_js:
- '16'
branches:
only:
- master
cache:
directories:
- xylsh_blog_source/node_modules
before_install:
- rm -rf xylsh_blog_source
- git clone https://github.com/weizhimiao/xylsh_blog_source.git xylsh_blog_source --recursive
- cd xylsh_blog_source
# - git submodule foreach git pull origin master
- cd article && git pull origin master && cd ..
- npm install -g hexo-cli
install:
- npm install
script:
- hexo clean
- hexo algolia
- hexo generate --silent
deploy:
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
local_dir: xylsh_blog_source/docs
repo: weizhimiao/weizhimiao.github.io
target_branch: gh-pages
keep_history: false
project_name: xylsh
email: [email protected]
name: zhimiao
committer_from_gh: false
allow_empty_commit: true
verbose: true
on:
branch: master