No commit activity in last 3 years
No release in over 3 years
GitHub Releases tasks for Capistrano v3
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 2.0
>= 0

Runtime

>= 0.11.0
>= 1.6.20
>= 3.1.0
 Project Readme

Capistrano Github-Releases

GitHub Releases tasks for Capistrano v3:

$ bundle exec cap production github:releases:create # Auto creation by last pull-request
$ bundle exec cap production github:releases:add_comment # Auto comment to last pull-request

Gem version

Installation

Add this line to your application's Gemfile:

gem 'capistrano-github-releases'

And then execute:

$ bundle

Or install it yourself as:

$ gem install capistrano-github-releases

Usage

Capfile:

require 'capistrano/github/releases'

deploy/production.rb:

after 'deploy:finishing', 'github:releases:create'
after 'deploy:finishing', 'github:releases:add_comment'

Options

Set capistrano variables with set name, value.

Name Default Description
ask_release false When true, asks for the release title and text
release_tag fetch(:released_at).strftime('%Y%m%d-%H%M%S%z') Create releases when git-tag name
release_title use pull-request title Title of release note
release_body release time and pull-request id Body of release note
release_comment This change was deployed to production :octocat: ... Pull requests to deploy report comment

GitHub Enterprise

deploy.rb:

Octokit.configure do |c|
  c.api_endpoint = 'http://your.enterprise.domain/api/v3'
  c.web_endpoint = 'http://your.enterprise.domain/'
end

Contributing

  1. Fork it ( http://github.com/linyows/capistrano-github-releases/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

Authors

License

The MIT License (MIT)