Skip to content

Instantly share code, notes, and snippets.

@yuchan
Created December 18, 2016 18:00
Show Gist options
  • Save yuchan/46825a1a756d6b4e8fffe5177e617241 to your computer and use it in GitHub Desktop.
Save yuchan/46825a1a756d6b4e8fffe5177e617241 to your computer and use it in GitHub Desktop.
box: phusion/passenger-ruby22
build:
steps:
- bundle-install
- script:
name: jekyll-octopress
code: |
bundle exec jekyll build
deploy:
steps:
- script:
name: "configure git"
code: |
git config --global user.email "your@email.com"
git config --global user.name "your name"
- script:
name: "prepare deploy"
hide-from-log: true
code: |
rm -rf _deploy.yml
bundle exec octopress deploy init git https://username:$GITHUB_TOKEN@github.com/username/example_repo.git
- script:
name: "do deploy"
code: |
bundle exec octopress deploy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment