Skip to content

Commit

Permalink
fix: Goreleaser fix (#1350)
Browse files Browse the repository at this point in the history
* update

* seperate archives

* fix

* binary format

* sha256sum

* header

* changelog

* 0

* metadata

---------

Co-authored-by: amitz <[email protected]>
Co-authored-by: Amit Zafran <[email protected]>
  • Loading branch information
3 people authored Apr 4, 2024
1 parent ebdb359 commit ed54dfd
Showing 1 changed file with 33 additions and 17 deletions.
50 changes: 33 additions & 17 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -40,6 +43,7 @@ builds:
flags:
- -mod=readonly
- -trimpath
mod_timestamp: "{{ .CommitTimestamp }}"

- id: lavad
binary: lavad
Expand Down Expand Up @@ -77,6 +81,7 @@ builds:
tags:
- netgo
- ledger
mod_timestamp: "{{ .CommitTimestamp }}"

- id: lavap
binary: lavap
Expand Down Expand Up @@ -104,6 +109,7 @@ builds:
flags:
- -mod=readonly
- -trimpath
mod_timestamp: "{{ .CommitTimestamp }}"

archives:
- id: lavavisor
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit ed54dfd

Please sign in to comment.