You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@answer.apache.org by li...@apache.org on 2023/12/27 15:40:29 UTC
(incubator-answer) branch main updated: ci(goreleaser): rename release src package name
This is an automated email from the ASF dual-hosted git repository.
linkinstar pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-answer.git
The following commit(s) were added to refs/heads/main by this push:
new 615e439f ci(goreleaser): rename release src package name
615e439f is described below
commit 615e439fd39569d087e34c6bb88b12dca28e4178
Author: LinkinStars <li...@foxmail.com>
AuthorDate: Wed Dec 27 23:12:32 2023 +0800
ci(goreleaser): rename release src package name
---
.goreleaser.yaml | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/.goreleaser.yaml b/.goreleaser.yaml
index 318a2cc0..bd27419a 100644
--- a/.goreleaser.yaml
+++ b/.goreleaser.yaml
@@ -32,7 +32,7 @@ builds:
- id: build
main: ./cmd/answer/.
binary: answer
- 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
+ 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
flags: -v
goos:
- linux
@@ -43,7 +43,7 @@ builds:
- id: build-windows
main: ./cmd/answer/.
binary: answer
- 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
+ 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
flags: -v
goos:
- windows
@@ -55,7 +55,7 @@ builds:
archives:
- name_template: >-
- apache-answer-{{ .Version }}-incubating-{{ .Os }}-{{ .Arch }}
+ apache-answer-{{ .RawVersion }}-incubating-bin-{{ .Os }}-{{ .Arch }}
files:
- src: "docs/release/LICENSE"
dst: LICENSE
@@ -76,5 +76,9 @@ changelog:
- '^docs:'
- '^test:'
-# goreleaser release --snapshot --rm-dist
+source:
+ enabled: true
+ name_template: apache-answer-{{ .RawVersion }}-incubating-src
+
+# goreleaser release --skip-validate --skip-publish --clean