ChronoTomato/.goreleaser.yaml
Sebastian Mark 9247df0891 feat: set version from git tag on build
- add version variable and default it to "devel"
- add ldflags to `.goreleaser.yaml` for version tagging
2024-11-07 20:31:11 +01:00

40 lines
577 B
YAML

# vim: set ts=2 sw=2 tw=0 fo=cnqoj
version: 2
before:
hooks:
- rm -fr ./dist
- go mod tidy
builds:
- goos:
- linux
goarch:
- amd64
- arm64
env:
- CGO_ENABLED=0
ldflags:
- -s -w -X git.smsvc.net/pomodoro/ChronoTomato/cmd/client.version={{.Version}}
upx:
- enabled: true
compress: best
lzma: true
changelog:
use: gitea
archives:
- format: binary
release:
gitea:
owner: pomodoro
name: ChronoTomato
mode: replace
gitea_urls:
download: http://git.smsvc.net
api: http://git.smsvc.net/api/v1