Skip to content

Commit

Permalink
Fix goreleaser config and brew formula
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-shpak committed Oct 14, 2019
1 parent 16f7199 commit cd32030
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
10 changes: 8 additions & 2 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,15 @@ brews:
homepage: "https://github.com/alex-shpak/gitname"
description: "Simple script to set git config properties in git repository based on remote url."

folder: formula
github:
owner: alex-shpak
name: gitname
commit_author:
name: Alex Shpak
email: [email protected]

url_template: "https://github.com/alex-shpak/gitname/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
dependencies:
- git

skip_upload: true

4 changes: 2 additions & 2 deletions formula/gitname.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ class Gitname < Formula
bottle :unneeded

if OS.mac?
url "https://github.com/alex-shpak/gitname/releases/download/v2/gitname_3_Darwin_x86_64.tar.gz"
url "https://github.com/alex-shpak/gitname/releases/download/v3/gitname_3_Darwin_x86_64.tar.gz"
sha256 "c00ce998aa8d83e269661818724957393500d7981b6b139f5f121baa03597ee7"
elsif OS.linux?
if Hardware::CPU.intel?
url "https://github.com/alex-shpak/gitname/releases/download/v2/gitname_3_Linux_x86_64.tar.gz"
url "https://github.com/alex-shpak/gitname/releases/download/v3/gitname_3_Linux_x86_64.tar.gz"
sha256 "6ef614cec45dd1ed4ec9596477a5f4e0afcb3f93b7bcf9b25609c3b5295c6f75"
end
end
Expand Down

0 comments on commit cd32030

Please sign in to comment.