Skip to content

Commit

Permalink
upgrade and fix goreleaser issue
Browse files Browse the repository at this point in the history
Signed-off-by: Anshul Ahuja <[email protected]>
  • Loading branch information
Anshul Ahuja committed Feb 22, 2023
1 parent 5555f7d commit 1730f8b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
1 change: 1 addition & 0 deletions changelogs/unreleased/5899-anshulahuja98
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix goreleaser issue for resolving tags and updated it's version.
8 changes: 5 additions & 3 deletions hack/release-tools/goreleaser.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,14 @@ fi
if [[ "${PUBLISH:-}" != "TRUE" ]]; then
echo "Not set to publish"
goreleaser release \
--rm-dist \
--clean \
--release-notes="${RELEASE_NOTES_FILE}" \
--skip-publish
--skip-publish \
--config goreleaser.yaml
else
echo "Getting ready to publish"
goreleaser release \
--rm-dist \
--clean \
--release-notes="${RELEASE_NOTES_FILE}"
--config goreleaser.yaml
fi
6 changes: 6 additions & 0 deletions hack/release-tools/goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
git:
# What should be used to sort tags when gathering the current and previous
# tags if there are more than one tag in the same commit.
#
# Default: `-version:refname`
tag_sort: -version:creatordate

0 comments on commit 1730f8b

Please sign in to comment.