From 2a3af8aef86408b8697f1934e35adb3649f83afb Mon Sep 17 00:00:00 2001 From: Xinwei Xiong <3293172751@qq.com> Date: Tue, 2 Jan 2024 21:26:55 +0800 Subject: [PATCH] Update .goreleaser.yaml (#362) --- .goreleaser.yaml | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 010f71405..56c73e225 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -17,11 +17,36 @@ before: hooks: + - make clean # You may remove this if you don't use go modules. - go mod tidy # you may remove this if you don't need go generate - go generate ./... + +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 + + # What should be used to specify prerelease suffix while sorting tags when gathering + # the current and previous tags if there are more than one tag in the same commit. + # + # Since: v1.17 + prerelease_suffix: "-" + + # Tags to be ignored by GoReleaser. + # This means that GoReleaser will not pick up tags that match any of the + # provided values as either previous or current tags. + # + # Templates: allowed. + # Since: v1.21. + ignore_tags: + - nightly + # - "{{.Env.IGNORE_TAG}}" + report_sizes: true builds: @@ -467,4 +492,4 @@ release: # announce: # slack: # enabled: false -# message_template: "slack {{ .Tag }} is out! Check it out: https://github.com/OpenIMSDK/Open-IM-Server/releases/tag/{{ .Tag }}" \ No newline at end of file +# message_template: "slack {{ .Tag }} is out! Check it out: https://github.com/OpenIMSDK/Open-IM-Server/releases/tag/{{ .Tag }}"