Skip to content

Commit

Permalink
Configure goreleaser.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mislav committed Nov 8, 2019
1 parent 7f70a34 commit 49f4003
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
bin/gh
/gh-cli
.envrc
/dist
15 changes: 14 additions & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down

0 comments on commit 49f4003

Please sign in to comment.