chore: adjust .goreleaser.yml for monorepo

This commit is contained in:
mrekucci 2024-04-02 15:47:27 -05:00
parent fd8bc6fa54
commit d83deb470b

View file

@ -1,9 +1,5 @@
version: 1 version: 1
before:
hooks:
- go mod tidy
builds: builds:
- env: - env:
- CGO_ENABLED=0 - CGO_ENABLED=0
@ -19,24 +15,27 @@ builds:
ignore: ignore:
- goos: windows - goos: windows
goarch: arm64 goarch: arm64
dir: ./external/geth
main: ./cmd/geth main: ./cmd/geth
binary: geth binary: mev-commit-geth
archives: archives:
- format: tar.gz - format: tar.gz
# This name template makes the OS and Arch compatible with the results of `uname`.
name_template: >- name_template: >-
{{ .ProjectName }}_ {{- .Binary }}_
{{- .Version }}_
{{- title .Os }}_ {{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64 {{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386 {{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }} {{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }} {{- if .Arm }}v{{ .Arm }}{{ end }}
# Use zip for windows archives.
format_overrides: format_overrides:
- goos: windows - goos: windows
format: zip format: zip
checksum:
name_template: mev-commit-geth_{{ .Version }}_checksums.txt
changelog: changelog:
sort: asc sort: asc
filters: filters: