Skip to content

Commit 415c8a1

Browse files
committed
chore(CI): Update goreleaser configuration for release.
- Add `dist` folder to gitignore - Update `goreleaser.yaml` with new flags and ldflags - Update version and commit information in `goreleaser.yaml`
1 parent 5e705b9 commit 415c8a1

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@
1515
# vendor/
1616
coverage.txt
1717
codegpt
18+
dist

.goreleaser.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ builds:
5858
flags:
5959
- -trimpath
6060
ldflags:
61-
- -s -w -X 'github.com/appleboy/CodeGPT/cmd.Version={{ GORELEASER_CURRENT_TAG }}' -X 'github.com/appleboy/CodeGPT/cmd.Commit=$(COMMIT)'
61+
- -s -w
62+
- -X github.com/appleboy/CodeGPT/cmd.Version={{.Version}}
63+
- -X github.com/appleboy/CodeGPT/cmd.Commit={{.ShortCommit}}
6264
binary: >-
6365
{{ .ProjectName }}-
6466
{{- if .IsSnapshot }}{{ .Branch }}-

0 commit comments

Comments
 (0)