Skip to content

Commit ae70d77

Browse files
committed
Refactor goreleaser configuration to use templated project name and module path
1 parent f5237e3 commit ae70d77

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.goreleaser.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
version: 2
44

55
builds:
6-
- main: ./cmd/gh-combine # Default: `.`.
6+
- main: ./cmd/{{ .ProjectName }}
77
dir: "."
8-
binary: gh-combine # Default: Project directory name.
8+
binary: "{{ .ProjectName }}"
99
env:
1010
- CGO_ENABLED=0
1111
- GOPROXY=off
@@ -21,7 +21,7 @@ builds:
2121
- windows
2222
- freebsd
2323
ldflags:
24-
- -s -w -X github.com/github/gh-combine/internal/version.tag={{.Tag}} -X github.com/github/gh-combine/internal/version.commit={{.FullCommit}} -X github.com/github/gh-combine/internal/version.buildTime={{.CommitDate}}
24+
- -s -w -X {{ .ModulePath }}/internal/version.tag={{.Tag}} -X {{ .ModulePath }}/internal/version.commit={{.FullCommit}} -X {{ .ModulePath }}/internal/version.buildTime={{.CommitDate}}
2525

2626
archives:
2727
- formats: binary

0 commit comments

Comments
 (0)