From 58d658be667a4ce1d704340e13c73f559416c856 Mon Sep 17 00:00:00 2001 From: Sebastian Mark Date: Thu, 7 Nov 2024 20:19:18 +0100 Subject: [PATCH] feat(goreleaser): add initial configuration for GoReleaser - add `.goreleaser.yaml` for release automation - add `dist` to gitignore --- .gitignore | 2 ++ .goreleaser.yaml | 38 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 .goreleaser.yaml diff --git a/.gitignore b/.gitignore index dd9e974..c835627 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ ChronoTomato + +dist/ diff --git a/.goreleaser.yaml b/.goreleaser.yaml new file mode 100644 index 0000000..8f87b3f --- /dev/null +++ b/.goreleaser.yaml @@ -0,0 +1,38 @@ +# 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: + use: gitea + +archives: + - format: binary + +release: + gitea: + owner: pomodoro + name: ChronoTomato + mode: replace + +gitea_urls: + download: http://git.smsvc.net + api: http://git.smsvc.net/api/v1