Skip to content

Commit

Permalink
fix: use correct tag when commit is tagged with both prerelease and r…
Browse files Browse the repository at this point in the history
…elease (#218)

* fix: set explicit build tag in release

* Use `name_template` to name artifacts without the `-rc` suffix.

* Add commit tag sorting.

* Fix template by amending default.

* Revert the template rename.
  • Loading branch information
sbruens authored Oct 7, 2024
1 parent d240aa1 commit 3dfecd8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,11 @@ changelog:
exclude:
- '^docs:'
- '^test:'

git:
# Sort tags by creation time when commit has more than one tag.
tag_sort: -version:creatordate

# Specify prerelease suffix while sorting tags if there are more than one tag
# in the same commit.
prerelease_suffix: "-rc"

0 comments on commit 3dfecd8

Please sign in to comment.