Skip to content

Instantly share code, notes, and snippets.

@skierkowski
Created April 22, 2014 01:10
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 skierkowski/11162040 to your computer and use it in GitHub Desktop.
Save skierkowski/11162040 to your computer and use it in GitHub Desktop.
Wait for git push in Github, then build with Middleman, then deploy to BitBalloon
listen 'github','push', username:'skierkowski', repo:'hello-middleman' do |repo_info|
run 'middleman','build', resource_id:repo_info['resource']['id'] do |build_info|
run 'bitballoon','deploy', resource_id:build_info['resource']['id'], site:'hello-middleman' do |deploy_info|
success "deploy complete with id #{deploy_info['id']}"
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment