From 9c0463f7ae7321d4ca66541d504465a9bed9b2e8 Mon Sep 17 00:00:00 2001 From: Sebastian Mark Date: Wed, 6 Nov 2024 18:11:37 +0100 Subject: [PATCH] feat: add initial configuration for GoReleaser MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 --- .gitignore | 3 +++ .goreleaser.yaml | 44 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 .goreleaser.yaml diff --git a/.gitignore b/.gitignore index 2201ae4..e360bab 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,4 @@ GoTomato + +dist/ +.forgejo_token diff --git a/.goreleaser.yaml b/.goreleaser.yaml new file mode 100644 index 0000000..f8265ac --- /dev/null +++ b/.goreleaser.yaml @@ -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