github-release-party 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +1 -2
- data/lib/github-release-party/tasks/fly.rb +17 -27
- data/lib/github-release-party/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +3 -3
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0e4d298c26526be7331b53c1595a5baa779b7986df66cdb3842b358b43e55f5c
|
4
|
+
data.tar.gz: 55f1b813006cf5cd112cf10166881e6d70c252d5833259cfa2715fa77376e70f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 214802b40794d344479c9277c0b5342efc7694974e2d492f27eafe76e0ffd8619df2cf3542d87728a1c1f224ce1ff9db2c5d431c63ae433d603309a279a957c3
|
7
|
+
data.tar.gz: 27f62ad62f154d3fb71898fac973c474c68c2d4d2fb2868b949e6ba41267420a030454dc575187d03f7719672a9cbd506c3f2a5bfe6214c72ccc531ca8d1a8e8
|
checksums.yaml.gz.sig
CHANGED
@@ -1,2 +1 @@
|
|
1
|
-
|
2
|
-
s*�
|
1
|
+
|;��E
|
@@ -3,19 +3,18 @@ require "shellwords"
|
|
3
3
|
require "github-release-party"
|
4
4
|
|
5
5
|
def fly_deploy(args=[])
|
6
|
-
# grab the new version number from the "fly deploy" output
|
7
6
|
cmd = %w[fly deploy] + args
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
7
|
+
return system(*cmd)
|
8
|
+
end
|
9
|
+
|
10
|
+
def fly_releases()
|
11
|
+
data = `fly releases --json`
|
12
|
+
abort if not $?.success?
|
13
|
+
return JSON.parse(data)
|
14
|
+
rescue => err
|
15
|
+
puts "There was a problem getting the release number."
|
16
|
+
puts "The error was: #{err.message}"
|
17
|
+
abort
|
19
18
|
end
|
20
19
|
|
21
20
|
def github_tag(hash, ver)
|
@@ -55,7 +54,9 @@ end
|
|
55
54
|
desc "Deploy a new version to Fly"
|
56
55
|
task :deploy do
|
57
56
|
GithubReleaseParty.check_env!
|
58
|
-
|
57
|
+
fly_deploy() or abort("Deploy failed.")
|
58
|
+
releases = fly_releases()
|
59
|
+
ver = "v#{releases[0]["Version"]}"
|
59
60
|
hash = `git rev-parse HEAD`.strip
|
60
61
|
github_tag(hash, ver)
|
61
62
|
end
|
@@ -64,20 +65,9 @@ namespace :deploy do
|
|
64
65
|
desc "Tag last release"
|
65
66
|
task :tag do
|
66
67
|
GithubReleaseParty.check_env!
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
data = `fly releases --json`
|
71
|
-
abort if not $?.success?
|
72
|
-
fly_releases = JSON.parse(data)
|
73
|
-
ver = "v#{fly_releases[0]["Version"]}"
|
74
|
-
hash = `git rev-parse HEAD`.strip
|
75
|
-
rescue => err
|
76
|
-
puts "There was a problem getting the release number."
|
77
|
-
puts "The error was: #{err.message}"
|
78
|
-
abort
|
79
|
-
end
|
80
|
-
|
68
|
+
releases = fly_releases()
|
69
|
+
ver = "v#{releases[0]["Version"]}"
|
70
|
+
hash = `git rev-parse HEAD`.strip
|
81
71
|
github_tag(hash, ver)
|
82
72
|
end
|
83
73
|
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: github-release-party
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stefan Sundin
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
31
31
|
E04BZKo2WzOTzSDymo97Yu4YFgyc98umMyeaCvPk4YmdNzqSanAXpY2bnsyu0CF5
|
32
32
|
Td0=
|
33
33
|
-----END CERTIFICATE-----
|
34
|
-
date:
|
34
|
+
date: 2024-01-06 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rake
|
@@ -78,7 +78,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
78
78
|
- !ruby/object:Gem::Version
|
79
79
|
version: 1.3.6
|
80
80
|
requirements: []
|
81
|
-
rubygems_version: 3.4.
|
81
|
+
rubygems_version: 3.4.17
|
82
82
|
signing_key:
|
83
83
|
specification_version: 4
|
84
84
|
summary: Easily create GitHub releases.
|
metadata.gz.sig
CHANGED
Binary file
|