https://github.com/linyows/capistrano-github-releases
:octocat: GitHub Releases tasks for Capistrano v3
https://github.com/linyows/capistrano-github-releases
Last synced: 4 months ago
JSON representation
:octocat: GitHub Releases tasks for Capistrano v3
- Host: GitHub
- URL: https://github.com/linyows/capistrano-github-releases
- Owner: linyows
- License: mit
- Created: 2014-01-24T05:23:00.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2021-10-12T14:45:42.000Z (over 3 years ago)
- Last Synced: 2025-01-12T14:11:22.599Z (4 months ago)
- Language: Ruby
- Homepage:
- Size: 30.3 KB
- Stars: 42
- Watchers: 3
- Forks: 12
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
Capistrano Github-Releases
==========================GitHub Releases tasks for Capistrano v3:
```sh
$ 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
```[](https://rubygems.org/gems/capistrano-github-releases)
Installation
------------Add this line to your application's Gemfile:
```ruby
gem 'capistrano-github-releases'
```And then execute:
```sh
$ bundle
```Or install it yourself as:
```sh
$ gem install capistrano-github-releases
```Usage
-----Capfile:
```ruby
require 'capistrano/github/releases'
```deploy/production.rb:
```ruby
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:
```ruby
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 RequestAuthors
-------- [linyows](https://github.com/linyows)
License
-------The MIT License (MIT)