From 3dfecd811c975f587743f75c4fa664cfd9632580 Mon Sep 17 00:00:00 2001 From: Sander Bruens Date: Mon, 7 Oct 2024 15:27:46 -0400 Subject: [PATCH] fix: use correct tag when commit is tagged with both prerelease and release (#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. --- .goreleaser.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.goreleaser.yml b/.goreleaser.yml index b07a73b4..eb2ba9ad 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -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"