Skip to content

update .goreleaser

update .goreleaser #8

Workflow file for this run

version: 2
before:
hooks:
- go mod tidy
- go generate ./...
builds:
- id: build-linux-windows
goos:
- windows
- linux
goarch:
- amd64
- arm64
env:
- CGO_ENABLED=0
flags:
- -trimpath
when:
env:
BUILD_TARGET: linux-windows
- id: build-macos
goos:
- darwin
goarch:
- amd64
- arm64
env:
- CGO_ENABLED=1
flags:
- -trimpath
when:
env:
BUILD_TARGET: macos
archives:
- format: tar.gz
name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
format_overrides:
- goos: windows
format: zip
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
checksum:
name_template: "checksums.txt"
release:
github:
owner: leandrodaf
name: Pianalyze