2014-06-25 23:43:24 +00:00
|
|
|
class GithubRelease < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Create and edit releases on Github (and upload artifacts)"
|
2014-06-25 23:43:24 +00:00
|
|
|
homepage "https://github.com/aktau/github-release"
|
2015-01-27 12:16:08 +00:00
|
|
|
url "https://github.com/aktau/github-release/archive/v0.5.3.tar.gz"
|
|
|
|
sha1 "f2816cee7a9a0c7eea22ab5ae1d5a6aa1caefc5e"
|
2014-06-25 23:43:24 +00:00
|
|
|
|
|
|
|
head "https://github.com/aktau/github-release.git"
|
2014-06-26 20:41:44 +00:00
|
|
|
|
|
|
|
bottle do
|
2015-02-20 15:37:05 +00:00
|
|
|
cellar :any
|
2015-01-27 12:39:43 +00:00
|
|
|
sha1 "1ad266fc6c56b6631214785c764fee4e19aaeb4e" => :yosemite
|
|
|
|
sha1 "31c085f718e68352a2b2f22f601512a1ba9adb65" => :mavericks
|
|
|
|
sha1 "0e120d55f94ea274ead008610a86b46d478f41b7" => :mountain_lion
|
2014-06-26 20:41:44 +00:00
|
|
|
end
|
|
|
|
|
2014-06-25 23:43:24 +00:00
|
|
|
depends_on "go" => :build
|
|
|
|
|
|
|
|
def install
|
|
|
|
ENV["GOPATH"] = buildpath
|
|
|
|
system "make"
|
|
|
|
bin.install "github-release"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
2015-01-27 12:16:08 +00:00
|
|
|
system "#{bin}/github-release", "info", "--user", "aktau",
|
|
|
|
"--repo", "github-release",
|
|
|
|
"--tag", "v#{version}"
|
2014-06-25 23:43:24 +00:00
|
|
|
end
|
|
|
|
end
|