Merge pull request #5899 from anshulahuja98/goreleaser

upgrade and fix goreleaser issue
pull/5849/head
Daniel Jiang 2023-02-28 16:40:48 +08:00 committed by GitHub
commit 357a917c4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 3 deletions

View File

@ -0,0 +1 @@
Fix goreleaser issue for resolving tags and updated it's version.

View File

@ -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

View File

@ -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