Files
go-test-sarif/.goreleaser.yml
2025-07-28 15:46:38 +03:00

80 lines
1.5 KiB
YAML

version: 2
before:
hooks:
- go mod tidy
- go generate ./...
builds:
- main: ./cmd/main.go
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
- arm
goarm:
- "7"
mod_timestamp: '{{ .CommitTimestamp }}'
flags:
- -trimpath
ldflags:
- -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{ .CommitDate }} -X main.builtBy=goreleaser
archives:
- 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 }}
builds_info:
group: root
owner: root
files:
- LICENSE*
- README*
- CHANGELOG*
checksum:
name_template: 'checksums.txt'
snapshot:
version_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc
use: github
filters:
exclude:
- '^docs:'
- '^test:'
- '^chore:'
- Merge pull request
- Merge branch
- go mod tidy
groups:
- title: 'New Features'
regexp: "^.*feat[(\\w)]*:+.*$"
order: 0
- title: 'Bug fixes'
regexp: "^.*fix[(\\w)]*:+.*$"
order: 1
- title: Other work
order: 999
release:
github:
owner: ivuorinen
name: go-test-sarif
draft: true
prerelease: auto
mode: append
name_template: "{{.ProjectName}}-v{{.Version}}"
disable: false