Skip to content
This repository has been archived by the owner on Mar 22, 2019. It is now read-only.

Commit

Permalink
Adds Travis CI continuous deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
locks committed May 23, 2016
1 parent eec51c2 commit eeae092
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@ build/
.rvmrc
.ruby-gemset
.cache

# Travis CI
deploy_key
16 changes: 16 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
sudo: false
language: ruby
rvm:
- 2.2
script:
- bundle exec middleman build
before_install:
- openssl aes-256-cbc -K $encrypted_1b489f438a17_key -iv $encrypted_1b489f438a17_iv
-in .travis/deploy_key.enc -out .travis/deploy_key -d
after_success:
- eval "$(ssh-agent -s)"
- chmod 600 .travis/deploy_key
- ssh-add .travis/deploy_key
- git config --global user.email "[email protected]"
- git config --global user.name "Travis CI"
- ".travis/deploy.sh"
10 changes: 10 additions & 0 deletions .travis/deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash
REPO="[email protected]:emberjs/emberjs.github.com.git"

COMMIT=`git log -1 --oneline`
git clone $REPO
rsync -a build/* emberjs.github.com
cd emberjs.github.com
git add -A .
git commit --allow-empty -am "$COMMIT"
git push origin master
Binary file added .travis/deploy_key.enc
Binary file not shown.
1 change: 1 addition & 0 deletions .travis/deploy_key.pub
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDqoOhBGZ2ybrnTMGdGWPLwjPDZgdYNrD7K3hflultjo6jsfRAnBPbzwz4v3XhJtjDqPKom4Yh+c/urKPLi9KWy8pi+Dr3q6S1sbpRNZJIjnZrhLlbKaasqlquohDpm7e6+kUW+3500vIJ0rk9+aa75e3EQQJaER8FSRLLktGuSZzmnJFLlqgy0aZY401ga8MsklXk1CiqIbYd/FnhxAY4GgDQ4djAG5LxvxRBhqLqULGWD4jCXeKrPrmqEN2KJekdLgIcYChuV9tQ3svuUigdl5vJtk1cCbxNmfAfssIb08BWqlICsUdrZ2uNGPIwOBJElXBN1ZAoeLBn36lBGJQQ9 [email protected]

0 comments on commit eeae092

Please sign in to comment.