Skip to content

Commit

Permalink
fix: change goreleaser config
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiankachlock committed Feb 7, 2024
1 parent 4b3729b commit 9ce4ded
Showing 1 changed file with 23 additions and 20 deletions.
43 changes: 23 additions & 20 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,33 +6,36 @@ builds:
binary: zwooc
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
targets:
- darwin_amd64
- darwin_arm64
- linux_amd64
- linux_arm64
- windows_amd64
- windows_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
- name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}_{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}'

checksum:
name_template: "checksums.txt"

release:
draft: true
replace_existing_draft: true
prerelease: auto

snapshot:
name_template: "{{ incpatch .Version }}-next"

changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
use: github
groups:
- title: Features
regexp: '^.*?feat(\([[:word:]]+\))??!?:.+$'
order: 0
- title: "Bug fixes"
regexp: '^.*?fix(\([[:word:]]+\))??!?:.+$'
order: 1
- title: Others
order: 999

0 comments on commit 9ce4ded

Please sign in to comment.