Skip to content

Commit 615e439

Browse files
committed
ci(goreleaser): rename release src package name
1 parent 41a73cf commit 615e439

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.goreleaser.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ builds:
3232
- id: build
3333
main: ./cmd/answer/.
3434
binary: answer
35-
ldflags: -s -w -X github.com/apache/incubator-answer/cmd.Version={{.Version}} -X github.com/apache/incubator-answer/cmd.Revision={{.ShortCommit}} -X github.com/apache/incubator-answer/cmd.Time={{.Date}} -X github.com/apache/incubator-answer/cmd.BuildUser=goreleaser
35+
ldflags: -s -w -X github.com/apache/incubator-answer/cmd.Version={{.RawVersion}} -X github.com/apache/incubator-answer/cmd.Revision={{.ShortCommit}} -X github.com/apache/incubator-answer/cmd.Time={{.Date}} -X github.com/apache/incubator-answer/cmd.BuildUser=goreleaser
3636
flags: -v
3737
goos:
3838
- linux
@@ -43,7 +43,7 @@ builds:
4343
- id: build-windows
4444
main: ./cmd/answer/.
4545
binary: answer
46-
ldflags: -s -w -X github.com/apache/incubator-answer/cmd.Version={{.Version}} -X github.com/apache/incubator-answer/cmd.Revision={{.ShortCommit}} -X github.com/apache/incubator-answer/cmd.Time={{.Date}} -X github.com/apache/incubator-answer/cmd.BuildUser=goreleaser
46+
ldflags: -s -w -X github.com/apache/incubator-answer/cmd.Version={{.RawVersion}} -X github.com/apache/incubator-answer/cmd.Revision={{.ShortCommit}} -X github.com/apache/incubator-answer/cmd.Time={{.Date}} -X github.com/apache/incubator-answer/cmd.BuildUser=goreleaser
4747
flags: -v
4848
goos:
4949
- windows
@@ -55,7 +55,7 @@ builds:
5555

5656
archives:
5757
- name_template: >-
58-
apache-answer-{{ .Version }}-incubating-{{ .Os }}-{{ .Arch }}
58+
apache-answer-{{ .RawVersion }}-incubating-bin-{{ .Os }}-{{ .Arch }}
5959
files:
6060
- src: "docs/release/LICENSE"
6161
dst: LICENSE
@@ -76,5 +76,9 @@ changelog:
7676
- '^docs:'
7777
- '^test:'
7878

79-
# goreleaser release --snapshot --rm-dist
79+
source:
80+
enabled: true
81+
name_template: apache-answer-{{ .RawVersion }}-incubating-src
82+
83+
# goreleaser release --skip-validate --skip-publish --clean
8084

0 commit comments

Comments
 (0)