From 74bd7f43cdfe9c964395d0a8a4eac18543c9dabd Mon Sep 17 00:00:00 2001 From: Sam Therapy Date: Tue, 12 Sep 2023 17:29:51 +0200 Subject: [PATCH] fix(goreleaser): Use GoReleaser's upload feature Replace my mess of a python script before --- .goreleaser.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 8de1d77..78910ab 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -134,6 +134,22 @@ nfpms: - statically-linked-binary - changelog-file-missing-in-native-package +uploads: + - + name: Packages + exts: + - deb + - rpm + - apk + - termux.deb + username: sam + target: >- + https://git.froth.zone/api/packages/sam/ + {{- if eq .LinuxPackage "deb" }}debian/pool/sid/main/upload + {{- else if eq .Os "termux.deb" }}debian/pool/termux/main/upload + {{- else if eq .Os "rpm" }}rpm/upload + {{- else if eq .Os "apk" }}alpine/edge/main + gitea_urls: api: https://git.froth.zone/api/v1 download: https://git.froth.zone