build: add goreleaser config for Gitea releases

This commit is contained in:
MDietermann
2026-04-14 21:12:46 +02:00
parent d346ca4241
commit 702638b29c

76
.goreleaser.yaml Normal file
View File

@@ -0,0 +1,76 @@
version: 2
project_name: archduino
before:
hooks:
- mkdir -p completions
- sh -c "go run ./cmd/archduino completion bash > completions/archduino.bash"
- sh -c "go run ./cmd/archduino completion zsh > completions/_archduino"
- sh -c "go run ./cmd/archduino completion fish > completions/archduino.fish"
builds:
- id: archduino
main: ./cmd/archduino
binary: archduino
env:
- CGO_ENABLED=0
goos:
- linux
goarch:
- amd64
- arm64
ldflags:
- -s -w
- -X main.version={{ .Version }}
- -X main.commit={{ .Commit }}
- -X main.date={{ .Date }}
archives:
- id: default
name_template: "archduino_{{ .Version }}_linux_{{ .Arch }}"
formats: [tar.gz]
files:
- README.md
- LICENSE
- src: completions/archduino.bash
dst: completions/archduino.bash
- src: completions/_archduino
dst: completions/_archduino
- src: completions/archduino.fish
dst: completions/archduino.fish
checksum:
name_template: "checksums.txt"
algorithm: sha256
changelog:
use: git
sort: asc
filters:
exclude:
- '^chore:'
- '^docs:'
- '^test:'
- '^ci:'
- '^style:'
- '^refactor:'
- 'Merge pull request'
- 'Merge branch'
groups:
- title: Features
regexp: '^feat(\(.*\))?:'
order: 0
- title: Bug fixes
regexp: '^(fix|perf)(\(.*\))?:'
order: 1
- title: Others
order: 999
gitea_urls:
api: https://gitlab.hive-brain.de/api/v1
download: https://gitlab.hive-brain.de
release:
draft: false
prerelease: auto