amseltools/.goreleaser.yaml

44 lines
848 B
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
2023-03-30 13:28:19 +02:00
goarch:
- amd64
2023-03-30 09:28:51 +02:00
archives:
2023-03-30 13:28:19 +02:00
- format: binary
2023-03-30 09:28:51 +02:00
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:'
2023-03-30 12:35:10 +02:00
release:
gitea:
owner: xsteadfastx
name: amseltools