Skip to content

Commit

Permalink
fix(workflow): make --version string consistent with git tag (#18)
Browse files Browse the repository at this point in the history
* fix(workflow): make --version string consistent with git tag

Signed-off-by: Gyuho Lee <[email protected]>

* use githuh-native for changelog

Signed-off-by: Gyuho Lee <[email protected]>

* revert

Signed-off-by: Gyuho Lee <[email protected]>

---------

Signed-off-by: Gyuho Lee <[email protected]>
  • Loading branch information
gyuho authored Aug 20, 2024
1 parent e7ea074 commit 21930d6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
5 changes: 3 additions & 2 deletions .goreleaser_darwin_amd64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@ builds:
flags:
- -v

# NOTE: the "v" prefix from the git tag is stripped for the {{.Version}}
ldflags:
- -s -w
- -X github.com/leptonai/gpud/version.BuildTimestamp={{.CommitTimestamp}}
- -X github.com/leptonai/gpud/version.Revision={{.Commit}}
- -X github.com/leptonai/gpud/version.Version={{.Version}}
- -X github.com/leptonai/gpud/version.Version=v{{.Version}}

goos:
- darwin
Expand All @@ -40,7 +41,7 @@ archives:

# https://goreleaser.com/customization/changelog/
changelog:
use: github
use: github-native

release:
draft: false
Expand Down
5 changes: 3 additions & 2 deletions .goreleaser_darwin_arm64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@ builds:
flags:
- -v

# NOTE: the "v" prefix from the git tag is stripped for the {{.Version}}
ldflags:
- -s -w
- -X github.com/leptonai/gpud/version.BuildTimestamp={{.CommitTimestamp}}
- -X github.com/leptonai/gpud/version.Revision={{.Commit}}
- -X github.com/leptonai/gpud/version.Version={{.Version}}
- -X github.com/leptonai/gpud/version.Version=v{{.Version}}

goos:
- darwin
Expand All @@ -40,7 +41,7 @@ archives:

# https://goreleaser.com/customization/changelog/
changelog:
use: github
use: github-native

release:
draft: false
Expand Down
5 changes: 3 additions & 2 deletions .goreleaser_linux_amd64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@ builds:
flags:
- -v

# NOTE: the "v" prefix from the git tag is stripped for the {{.Version}}
ldflags:
- -s -w
- -X github.com/leptonai/gpud/version.BuildTimestamp={{.CommitTimestamp}}
- -X github.com/leptonai/gpud/version.Revision={{.Commit}}
- -X github.com/leptonai/gpud/version.Version={{.Version}}
- -X github.com/leptonai/gpud/version.Version=v{{.Version}}

goos:
- linux
Expand All @@ -40,7 +41,7 @@ archives:

# https://goreleaser.com/customization/changelog/
changelog:
use: github
use: github-native

release:
draft: false
Expand Down

0 comments on commit 21930d6

Please sign in to comment.