-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
24 lines (24 loc) · 930 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
language: go
if: branch = master
before_install:
- go get -u -v github.com/gohugoio/hugo
- sudo apt-get install -y nodejs npm && npm install
script:
- hugo
after_success:
# {{{ SSH Key の復帰
- openssl aes-256-cbc -K $encrypted_5de9e16c0b96_key -iv $encrypted_5de9e16c0b96_iv -in ./deploy/id_rsa.enc -out ~/.ssh/deploy_rsa -d
- chmod 600 ~/.ssh/deploy_rsa
- echo -e "Host github.com\n\tStrictHostKeyChecking no\n\tIdentityFile ~/.ssh/deploy_rsa\n" >> ~/.ssh/config
# }}}
# {{{ Git user の設定
- git config --global user.email otiai10+ayanel-ci@gmail.com
- git config --global user.name "Ayanel CI"
- git remote set-url origin git@github.com:yukemuli/yukemuli.github.io.git
# }}}
# {{{ デプロイ
- git checkout .
- git checkout master
- hugo
- ./deploy/should_deploy.sh && git add . && git commit --allow-empty -m "[BOT] Deploy!" && git push origin master && npm run announce
# }}}