Configure goreleaser.yml

This commit is contained in:
Mislav Marohnić 2019-11-08 15:57:57 +01:00
parent 7f70a342a3
commit 49f4003b7e
2 changed files with 15 additions and 1 deletions

1
.gitignore vendored
View file

@ -1,3 +1,4 @@
bin/gh
/gh-cli
.envrc
/dist

View file

@ -1,14 +1,27 @@
# Make sure to check the documentation at http://goreleaser.com
project_name: gh
before:
hooks:
- go mod tidy
builds:
- binary: gh
- binary: bin/gh
ldflags:
- -s -w -X github.com/github/gh-cli/command.Version={{.Version}} -X github.com/github/gh-cli/command.BuildDate={{.Date}}
goos:
- linux
- darwin
- windows
goarch:
- amd64
archives:
- name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
wrap_in_directory: true
replacements:
darwin: macOS
format: tar.gz
format_overrides:
- goos: windows
format: zip
changelog:
sort: asc
filters: