GitHub Releases tasks for Capistrano v3
Ruby
Latest commit fd13f39 Jan 27, 2017 @linyows bump version to 0.6.0
Permalink
Failed to load latest commit information.
lib
.gitignore first commit Jan 24, 2014
Gemfile first commit Jan 24, 2014
LICENSE.txt first commit Jan 24, 2014
README.md
Rakefile first commit Jan 24, 2014
capistrano-github-releases.gemspec update dependency gems Jun 12, 2014

README.md

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)