Skip to content

Commit 4a92261

Browse files
authored
Merge pull request #725 from SimoneDutto/fix-go-releaser
#725 Add tag sorting to make sure to always release the latest tag when multiple are present for a single commit. Doc: https://goreleaser.com/customization/git/?h=tag_sort
2 parents b660826 + 4f17415 commit 4a92261

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.goreleaser.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ before:
44
hooks:
55
# TODO: don't tidy beforehand to avoid current ambiguous import error
66
# - go mod tidy
7+
git:
8+
# What should be used to sort tags when gathering the current and previous
9+
# tags if there are more than one tag in the same commit.
10+
tag_sort: -version:creatordate
711
builds:
812
- env:
913
# goreleaser does not work with CGO, it could also complicate

0 commit comments

Comments
 (0)