Skip to content

Commit

Permalink
add goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
hbagdi committed Oct 8, 2021
1 parent 09af6ad commit d8015ce
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
37 changes: 37 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- darwin
- windows
- freebsd
goarch:
- amd64
flags:
- -trimpath
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}"
nfpms:
- file_name_template: '{{ .ProjectName }}_{{ .Tag }}_{{ .Arch }}'
homepage: https://github.com/hbagdi/y2j
description: YAML to JSON converter
maintainer: Harry Bagdi <[email protected]>
license: Apache License v2.0
formats:
- deb
- rpm
brews:
- tap:
owner: hbagdi
name: homebrew-tap
commit_author:
name: Harry Bagdi
email: [email protected]
homepage: "https://github.com/hbagdi/y2j"
description: YAML to JSON converter
skip_upload: true
test: |
system "#{bin}/y2j", "-help"
1 change: 0 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ func die(format string, a ...interface{}) {
os.Exit(1)
}


func main() {
flag.Parse()
if *help {
Expand Down

0 comments on commit d8015ce

Please sign in to comment.