gogitlabber/.github/.goreleaser.yaml

48 lines
870 B
YAML

---
version: 2
# before
before:
hooks:
- "go mod tidy"
- "go generate ./..."
# archives
archives:
- formats: ["tar.gz"]
name_template: "{{.ProjectName}}-v{{.Version}}-{{ .Os }}-{{ .Arch }}"
format_overrides:
- goos: "windows"
formats: ["zip"]
# build
builds:
- id: "gogitlabber"
binary: "gogitlabber"
main: "./cmd/gogitlabber"
env:
- "CGO_ENABLED=0"
goarch:
- "amd64"
- "arm64"
goos:
- "darwin"
- "freebsd"
- "linux"
- "windows"
# changelog
changelog:
use: "git"
sort: "desc"
groups:
- title: "🚀 Features"
regexp: "^feat"
- title: "🐛 Bug Fixes"
regexp: "^fix"
- title: "🛠️ Maintenance"
regexp: "^(chore|refactor)"
- title: "🦾 Automation"
regexp: "^ci"
- title: "📖 Documentation"
regexp: "^docs"