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-requestInstallation
Add this line to your application's Gemfile:
gem 'capistrano-github-releases'And then execute:
$ bundleOr install it yourself as:
$ gem install capistrano-github-releasesUsage
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 |
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/'
endContributing
- Fork it ( http://github.com/linyows/capistrano-github-releases/fork )
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request
Authors
License
The MIT License (MIT)