amseltools/.goreleaser.yaml

46 lines
1.1 KiB
YAML
Raw Normal View History

2023-03-30 11:21:45 +02:00
gitea_urls:
api: https://git.xsfx.dev/api/v1/
2023-03-30 11:34:54 +02:00
download: https://git.xsfx.dev
2023-03-30 09:28:51 +02:00
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:
- env:
- CGO_ENABLED=0
ldflags:
- -s
- -w
- -extldflags '-static'
- -X main.version={{.Version}}
- -X main.commit={{.Commit}}
- -X main.date={{.Date}}
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
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
2023-03-30 11:21:45 +02:00
- '^chore:'
- '^ci:'
2023-03-30 11:34:54 +02:00
- '^debug:'