X Tutup
Skip to content

Commit 49f4003

Browse files
committed
Configure goreleaser.yml
1 parent 7f70a34 commit 49f4003

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
bin/gh
22
/gh-cli
33
.envrc
4+
/dist

.goreleaser.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,27 @@
11
# Make sure to check the documentation at http://goreleaser.com
2+
project_name: gh
23
before:
34
hooks:
45
- go mod tidy
56
builds:
6-
- binary: gh
7+
- binary: bin/gh
8+
ldflags:
9+
- -s -w -X github.com/github/gh-cli/command.Version={{.Version}} -X github.com/github/gh-cli/command.BuildDate={{.Date}}
710
goos:
811
- linux
912
- darwin
13+
- windows
1014
goarch:
1115
- amd64
16+
archives:
17+
- name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
18+
wrap_in_directory: true
19+
replacements:
20+
darwin: macOS
21+
format: tar.gz
22+
format_overrides:
23+
- goos: windows
24+
format: zip
1225
changelog:
1326
sort: asc
1427
filters:

0 commit comments

Comments
 (0)
X Tutup