build(release): fix gitea config key (gitea_urls) and pin owner/name

giteaurls is not a goreleaser key — the correct one is gitea_urls. The
scp-style origin remote (gitea@host:owner/repo.git) is also an
unreliable source for owner/name derivation, so release.gitea pins
them explicitly.
This commit is contained in:
m3ta-chiron committed 2026-10-02 13:05:41 +02:00
1 parent a913baa496
commit 5e7d693699
1 file changed
+12 -8
+12 -8
View File
@@ -4,12 +4,21 @@ project_name: agent-lib
# Releases gehen an die eigene Gitea-Instanz (NICHT GitHub): # Releases gehen an die eigene Gitea-Instanz (NICHT GitHub):
# GITEA_TOKEN=<token mit repository-write> als Umgebungsvariable # GITEA_TOKEN=<token mit repository-write> als Umgebungsvariable
# Repo/Owner werden aus dem origin-Remote abgeleitet # Owner/Name sind explizit gesetzt, weil das SCP-Stil-Remote
# (gitea@code.m3ta.dev:m3tam3re/agent-lib.git). # (gitea@code.m3ta.dev:m3tam3re/agent-lib.git) fuer die automatische
giteaurls: # Ableitung unzuverlaessig ist.
gitea_urls:
api: https://code.m3ta.dev/api/v1 api: https://code.m3ta.dev/api/v1
download: https://code.m3ta.dev download: https://code.m3ta.dev
release:
draft: false
prerelease: auto
mode: append
gitea:
owner: m3tam3re
name: agent-lib
before: before:
hooks: hooks:
- go mod tidy - go mod tidy
@@ -45,11 +54,6 @@ archives:
# .../releases/download/<tag>/agent-lib_<os>_<arch>.<ext> # .../releases/download/<tag>/agent-lib_<os>_<arch>.<ext>
name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}" name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
release:
draft: false
prerelease: auto
mode: append
changelog: changelog:
sort: asc sort: asc
filters: filters: