Skip to content

Instantly share code, notes, and snippets.

@plttn
Last active August 29, 2015 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save plttn/655c1a3bce8ab3275a4b to your computer and use it in GitHub Desktop.
Save plttn/655c1a3bce8ab3275a4b to your computer and use it in GitHub Desktop.
language: ruby
cache: bundler
rvm:
- 1.9.3
branches:
only:
- deploy
before_install:
- echo -e "Host *\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
- mkdir ~/deploy
- echo -e "$DEPLOY_PRIVATE_KEY" > ~/deploy/travis_rsa
- chmod 600 ~/deploy/travis_rsa*
- eval `ssh-agent -s`
- ssh-add ~/deploy/travis_rsa
- git config --global user.email "build@travisci.org"
- git config --global user.name "Travis CI"
script:
- bundle exec jekyll build
- bundle exec octopress deploy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment