Skip to content

Commit

Permalink
Fix the version setting when release it
Browse files Browse the repository at this point in the history
  • Loading branch information
LinuxSuRen committed Dec 8, 2020
1 parent 7d4ba5b commit 769ac1c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ builds:
post:
- upx "{{ .Path }}"
ldflags:
- -X github.com/linuxsuren/cgit/app.version={{.Version}}
- -X github.com/linuxsuren/cgit/app.commit={{.ShortCommit}}
- -X github.com/linuxsuren/cgit/app.date={{.Date}}
- -X github.com/linuxsuren/cobra-extension/version.version={{.Version}}
- -X github.com/linuxsuren/cobra-extension/version.commit={{.ShortCommit}}
- -X github.com/linuxsuren/cobra-extension/version.date={{.Date}}
- -w
dist: release
archives:
Expand Down

0 comments on commit 769ac1c

Please sign in to comment.