$ gem install travis
$ travis login
$ travis lint
- http://scurker.com/automated-deploys-with-travis/
- https://zespia.tw/blog/2015/01/21/continuous-deployment-to-github-with-travis/
$ cd ~/.ssh
$ ssh-keygen -t rsa -C "bell@greedlab.com"
Generating public/private rsa key pair.
Enter file in which to save the key (/Users/bell/.ssh/id_rsa): ssh_key
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in ssh_key.
Your public key has been saved in ssh_key.pub.
把ssh_key.pub
添加到GreedBell/blog > Settings > Deploy keys > add deploy key
$ travis encrypt-file ~/.ssh/ssh_key --add -r GreedBell/blog
-
把
-out ssh_key
改为-out ~/.ssh/id_rsa
-
修改
id_rsa
权限
- chmod 600 ~/.ssh/id_rsa
- 设置用户
git config user.email "bell@greedlab.com"
git config user.name "Bell"