capistrano-github-releases 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/lib/capistrano/github/releases/version.rb +1 -1
- data/lib/capistrano/tasks/github_releases.rake +1 -11
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fdfdbbaff66c661aab63db1a10214eb9d980c4f1
|
4
|
+
data.tar.gz: 0da7a3da1b46da99ff4d8b2d08eb8632215f40ad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b1537e033fe1c31f36557b0c2e69a403db158618d1688c1e2f0f70c3b027cd013cb89fccd4c440f6dffb09e3aca98bd39cc580efbab8b1513273f4ba95c9c809
|
7
|
+
data.tar.gz: 951ced757101300eaf29b8b2a08cb6b9cd88d2bfd7abf2f78e8e62b051e05a1d467a6d3ccf786a158c043031cc7aa60331f514bd3137fde1a628cfe4ebadfb5f
|
data/README.md
CHANGED
@@ -52,10 +52,10 @@ after 'deploy:finishing', 'github:releases:add_comment'
|
|
52
52
|
|
53
53
|
Set capistrano variables with `set name, value`.
|
54
54
|
|
55
|
-
Name | Default
|
56
|
-
---- | -------
|
57
|
-
release_tag | `Time.now.strftime('release-%Y%m%d-%H%M')`
|
58
|
-
release_comment | This
|
55
|
+
Name | Default | Description
|
56
|
+
---- | ------- | -----------
|
57
|
+
release_tag | `Time.now.strftime('release-%Y%m%d-%H%M')` | Create releases when git-tag name
|
58
|
+
release_comment | This change was deployed to production :octocat: ... | Pull requests to deploy report comment
|
59
59
|
|
60
60
|
### GitHub Enterprise
|
61
61
|
|
@@ -26,15 +26,6 @@ namespace :github do
|
|
26
26
|
Time.now.strftime('release-%Y%m%d-%H%M')
|
27
27
|
}
|
28
28
|
|
29
|
-
set :github_username, -> {
|
30
|
-
if ENV['GITHUB_USERNAME'].nil?
|
31
|
-
username = HighLine.new.ask("GitHub Username? [default: #{fetch(:username)}]")
|
32
|
-
Dotenv.add "GITHUB_USERNAME=#{username}"
|
33
|
-
else
|
34
|
-
ENV['GITHUB_USERNAME']
|
35
|
-
end
|
36
|
-
}
|
37
|
-
|
38
29
|
set :release_title, -> {
|
39
30
|
default_title = nil
|
40
31
|
|
@@ -74,7 +65,7 @@ namespace :github do
|
|
74
65
|
url = "#{fetch(:github_releases_path)}/#{fetch(:release_tag)}"
|
75
66
|
|
76
67
|
<<-MD.gsub(/^ {6}/, '').strip
|
77
|
-
|
68
|
+
This change was deployed to production :octocat:
|
78
69
|
#{fetch(:release_title)}: [#{fetch(:release_tag)}](#{url})
|
79
70
|
MD
|
80
71
|
}
|
@@ -102,7 +93,6 @@ namespace :github do
|
|
102
93
|
run_locally do
|
103
94
|
begin
|
104
95
|
Octokit.configure do |c|
|
105
|
-
c.login = fetch(:github_username)
|
106
96
|
c.access_token = fetch(:github_token)
|
107
97
|
end
|
108
98
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-github-releases
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- linyows
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-03-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|