feat: add initial configuration for GoReleaser

🤖
This commit is contained in:
Sebastian Mark 2024-11-06 18:11:37 +01:00
parent 647ee916ae
commit 9c0463f7ae
2 changed files with 47 additions and 0 deletions

3
.gitignore vendored
View file

@ -1 +1,4 @@
GoTomato GoTomato
dist/
.forgejo_token

44
.goreleaser.yaml Normal file
View file

@ -0,0 +1,44 @@
# 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
upx:
- enabled: true
compress: best
lzma: true
changelog:
sort: asc
filters:
exclude:
- "bump version to"
archives:
- format: binary
release:
gitea:
owner: pomodoro
name: GoTomato
mode: replace
gitea_urls:
download: http://git.smsvc.net
api: http://git.smsvc.net/api/v1
env_files:
gitea_token: .forgejo_token