Skip to content

Commit

Permalink
Merge pull request #14 from harakeishi/fix-releaser
Browse files Browse the repository at this point in the history
fix yaml
  • Loading branch information
harakeishi committed Apr 10, 2024
2 parents df806f5 + 3cbcbef commit ace8222
Showing 1 changed file with 23 additions and 9 deletions.
32 changes: 23 additions & 9 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
# This is an example .goreleaser.yml file with some sensible defaults.
# Make sure to check the documentation at https://goreleaser.com


version: 1

before:
hooks:
# You may remove this if you don't use go modules.
- go mod tidy

builds:
- env:
- CGO_ENABLED=0
Expand All @@ -12,17 +17,26 @@ builds:
- windows
- darwin
ldflags:
- -s -w -X github.com/harakeishi/curver.Version={{.Version}}
- -s -w -X github.com/harakeishi/curver.Version={{.Version}}

archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
- 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:'
- "^docs:"
- "^test:"

0 comments on commit ace8222

Please sign in to comment.