Skip to content

Commit

Permalink
adding .goreleaser.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanmartins committed Dec 18, 2023
1 parent 8fc9800 commit 0e5bff8
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin

archives:
- format: tar.gz
# this name template makes the OS and Arch compatible with the results of `uname`.
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 }}
# use zip for windows archives
format_overrides:
- goos: windows
format: zip

0 comments on commit 0e5bff8

Please sign in to comment.