Repository is archived
No commit activity in last 3 years
No release in over 3 years
Integrates Capistrano with Github Deployments API
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.5
>= 0
~> 3.1

Runtime

< 4.0, >= 3.0
 Project Readme

Capistrano::Github

In January 2014 Github Team announced Deployments API and you can use it with Capistrano 3.

Installation

Add this line to your application's Gemfile:

gem 'capistrano-github', github: '3scale/capistrano-github'

And then execute:

$ bundle

Require github tasks and set github_access_token:

# Capfile
require 'capistrano/github'
# deploy.rb
set :github_access_token, '89c3be3d1f917b6ccf5e2c141dbc403f57bc140c'


before 'deploy:starting', 'github:deployment:create'
after  'deploy:starting', 'github:deployment:pending'
after  'deploy:finished', 'github:deployment:success'
after  'deploy:failed',   'github:deployment:failure'

You can get your personal GH token here

Usage

New deployment record will be created automatically on each cap deploy run.

To see the list of deployments, execute

cap production github:deployments

Contributing

  1. Fork it ( http://github.com/3scale/capistrano-github/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request