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 }}"