-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
36 lines (36 loc) · 977 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
language: node_js
node_js: stable
branches:
only:
- source
cache:
apt: true
yarn: true
directories:
- node_modules
addons:
ssh_known_hosts: 47.106.174.43
before_install:
- openssl aes-256-cbc -K $encrypted_1db4be9f9453_key -iv $encrypted_1db4be9f9453_iv
-in deploy_rsa.enc -out deploy_rsa -d
- eval $(ssh-agent -s)
- chmod 600 deploy_rsa
- ssh-add deploy_rsa
- git config --global user.name "xiaofeizao1996"
- git config --global user.email "[email protected]"
- curl -o- -L https://yarnpkg.com/install.sh | bash
- export PATH=$HOME/.yarn/bin:$PATH
- npm install -g hexo-cli
install:
- yarn
script:
- hexo clean
- hexo generate
after_success:
- cd ./public
- git init
- git add --all .
- git commit -m "Travis CI Auto Builder"
- git push --quiet --force https://[email protected]/xiaofeizao1996/xiaofeizao1996.github.io.git
master
- scp -o stricthostkeychecking=no -r * [email protected]:/home/public