diff --git a/.gitignore b/.gitignore index 0cd2d89..8a701bd 100644 --- a/.gitignore +++ b/.gitignore @@ -28,6 +28,7 @@ _testmain.go # our binaries /inbucket /inbucket.exe +/dist/** /target/** /cmd/client/client /cmd/client/client.exe diff --git a/.goreleaser.yml b/.goreleaser.yml new file mode 100644 index 0000000..04115f1 --- /dev/null +++ b/.goreleaser.yml @@ -0,0 +1,49 @@ +release: + github: + owner: 'https:' + name_template: '{{.Tag}}' +brew: + commit_author: + name: goreleaserbot + email: goreleaser@carlosbecker.com + install: bin.install "" +builds: + - goos: + - linux + - darwin + goarch: + - amd64 + - "386" + goarm: + - "6" + main: . + ldflags: -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}} +archive: + format: tar.gz + name_template: '{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ + .Arm }}{{ end }}' + files: + - licence* + - LICENCE* + - license* + - LICENSE* + - readme* + - README* + - changelog* + - CHANGELOG* +fpm: + bindir: /usr/local/bin +snapshot: + name_template: SNAPSHOT-{{ .Commit }} +checksum: + name_template: '{{ .ProjectName }}_{{ .Version }}_checksums.txt' +dist: dist +sign: + cmd: gpg + args: + - --output + - $signature + - --detach-sig + - $artifact + signature: ${artifact}.sig + artifacts: none