-
Notifications
You must be signed in to change notification settings - Fork 19
/
.travis.yml
29 lines (28 loc) · 1.11 KB
/
.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
language: ruby
rvm:
- 2.3.0
after_success:
- echo -e "Host github.com\n\tStrictHostKeyChecking no\nIdentityFile ~/.ssh/deploy.key\n" >> ~/.ssh/config
- openssl aes-256-cbc -k "$secret" -in .travis/deploy_key.enc -d -a -out deploy.key
- cp deploy.key ~/.ssh/
- chmod 600 ~/.ssh/deploy.key
- git clone [email protected]:great-h/great-h.github.io.git -b master
- cd great-h.github.io
- cp -aT ../_site/ .
- git add --all
- 'git commit -m "Generate Travis JOB $TRAVIS_JOB_NUMBER
https://travis-ci.org/great-h/great-h.github.io/builds/$TRAVIS_BUILD_ID"'
- '[ "x$TRAVIS_BRANCH" == "xsource" ] && git push origin master'
branches:
except:
- master
env:
global:
- secure: "gIC6PLCnYmO29FiGqA1ZpVFsGBWbbdkZJGcBwYL2kyav3fPwdxRe6+RG3WEUfY2qwFnI52Br7pQ4ZClaBD76abObmYFW8Qkd13bgxgYMHFFzDh6ACMoY/JvRu4SXZcqiSi2QzeDTRk8Q825kGNY3QJXb4NiZ9gj8uAR9bNpnqnc="
- GIT_COMMITTER_NAME="Tomohiko Himura"
- GIT_COMMITTER_EMAIL="[email protected]"
- GIT_AUTHOR_NAME="Tomohiko Himura"
- GIT_AUTHOR_EMAIL="[email protected]"
notifications:
webhooks:
- https://idobata.io/hook/23b0913b-4122-4521-8478-e841a6a3f871