diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 36a0b4a127..8c90320dbe 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -13,6 +13,9 @@ before: # you may remove this if you don't need go generate - go generate ./... +metadata: + mod_timestamp: "{{ .CommitTimestamp }}" + builds: - id: lavavisor binary: lavavisor @@ -40,6 +43,7 @@ builds: flags: - -mod=readonly - -trimpath + mod_timestamp: "{{ .CommitTimestamp }}" - id: lavad binary: lavad @@ -77,6 +81,7 @@ builds: tags: - netgo - ledger + mod_timestamp: "{{ .CommitTimestamp }}" - id: lavap binary: lavap @@ -104,6 +109,7 @@ builds: flags: - -mod=readonly - -trimpath + mod_timestamp: "{{ .CommitTimestamp }}" archives: - id: lavavisor @@ -132,34 +138,44 @@ archives: format: zip checksum: - name_template: '{{ .ProjectName }}_{{ .Version }}_checksums.txt' + name_template: "sha256sum.txt" algorithm: sha256 changelog: use: github sort: asc - abbrev: 0 - groups: # Regex use RE2 syntax as defined here: https://github.com/google/re2/wiki/Syntax. - - title: 'Features' - regexp: '^.*?feat(\([[:word:]]+\))??!?:.+$' + groups: + - title: Dependency updates + regexp: '^.*?(feat|fix|chore)\(deps\)!?:.+$' + order: 300 + - title: "New Features" + regexp: '^.*?feat(\(.+\))??!?:.+$' order: 100 - - title: 'Bug fixes' - regexp: '^.*?fix(\([[:word:]]+\))??!?:.+$' + - title: "Security updates" + regexp: '^.*?sec(\(.+\))??!?:.+$' + order: 150 + - title: "Bug fixes" + regexp: '^.*?(fix|refactor)(\(.+\))??!?:.+$' order: 200 - - title: 'Documentation' - regexp: '^.*?docs(\([[:word:]]+\))??!?:.+$' - order: 300 - - title: 'Dependency updates' - regexp: '^.*?(feat|fix|chore)\(deps?.+\)!?:.+$' + - title: "Documentation updates" + regexp: ^.*?docs?(\(.+\))??!?:.+$ + order: 400 + - title: "Build process updates" + regexp: ^.*?(build|ci)(\(.+\))??!?:.+$ order: 400 - - title: 'Other work' - order: 999 + - title: Other work + order: 9999 filters: exclude: - - '^test:' - - '^.*?Bump(\([[:word:]]+\))?.+$' - - '^.*?[Bot](\([[:word:]]+\))?.+$' + - "^test:" + - "^test\\(" + - "^chore" + - "merge conflict" + - Merge pull request + - Merge remote-tracking branch + - Merge branch + - go mod tidy release: github: