Skip to content

Commit

Permalink
Create .goreleaser.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
koki-develop committed Mar 5, 2024
1 parent 935f08a commit 7eb8712
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
before:
hooks:
- go mod tidy
builds:
- ldflags:
- -s -w -X github.com/koki-develop/mingo/cmd.version=v{{.Version}}
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin

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
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'

brews:
- repository:
owner: koki-develop
name: homebrew-tap
token: "{{ .Env.TAP_GITHUB_TOKEN }}"

0 comments on commit 7eb8712

Please sign in to comment.