Skip to content

Commit

Permalink
update goreleaser.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
Harshal Ranjhani authored and Harshal Ranjhani committed May 26, 2024
1 parent 973db8d commit 1e2828a
Showing 1 changed file with 36 additions and 9 deletions.
45 changes: 36 additions & 9 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,42 @@
before:
hooks:
# You may remove this if you don't use go modules.
- go mod tidy
# you may remove this if you don't need go generate
- go generate ./...

builds:
- binary: genie
- env:
- CGO_ENABLED=0
goos:
- darwin
- linux
goarch:
- amd64
- arm64
env:
- CGO_ENABLED=0
flags:
- -mod=vendor
- 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

changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
- 'README'
- Merge pull request
- Merge branch

release:
prerelease: auto
Expand Down

0 comments on commit 1e2828a

Please sign in to comment.