Skip to content

Commit

Permalink
feat: add GoReleaser configuration file for building releases
Browse files Browse the repository at this point in the history
  • Loading branch information
Leandro Ferreira committed Oct 26, 2024
1 parent f213029 commit 91d04ec
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
version: 2

before:
hooks:
- go mod tidy
- go generate ./...

builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64

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"

snapshot:
name_template: "{{ .Tag }}-{{ .ShortCommit }}"

release:
github:
owner: leandrodaf
name: Pianalyze

0 comments on commit 91d04ec

Please sign in to comment.