categraf/.goreleaser.yaml

44 lines
794 B
YAML

before:
hooks:
# You may remove this if you don't use go modules.
- go mod tidy
snapshot:
name_template: '{{ .Tag }}'
checksum:
name_template: 'checksums.txt'
changelog:
skip: true
builds:
- id: build
main: ./
binary: categraf
env:
- CGO_ENABLED=1
goos:
- linux
- windows
goarch:
- amd64
ldflags:
- -s -w
- -X flashcat.cloud/categraf/config.Version={{ .Tag }}-{{.Commit}}
archives:
- id: categraf
format: tar.gz
format_overrides:
- goos: windows
format: zip
name_template: "{{ .ProjectName }}-v{{ .Version }}-{{ .Os }}-{{ .Arch }}"
wrap_in_directory: true
files:
- conf/*
release:
github:
owner: flashcatcloud
name: categraf
name_template: "v{{ .Version }}"