build(release): publish releases to Gitea (code.m3ta.dev) instead of GitHub

Removes the release.github block — target and credentials come from
GITEA_URL/GITEA_TOKEN env. Pins the archive name_template to
agent-lib_<os>_<arch> so fleet download URLs stay predictable.
This commit is contained in:
2026-08-24 13:17:08 +02:00
parent cbe284dfae
commit addca3dd74
+9 -3
View File
@@ -2,6 +2,12 @@ version: 2
project_name: agent-lib project_name: agent-lib
# Releases gehen an die eigene Gitea-Instanz (NICHT GitHub):
# GITEA_URL=https://code.m3ta.dev
# GITEA_TOKEN=<token mit repository-write>
# Repo/Owner werden aus dem origin-Remote abgeleitet
# (gitea@code.m3ta.dev:m3tam3re/agent-lib.git).
before: before:
hooks: hooks:
- go mod tidy - go mod tidy
@@ -33,11 +39,11 @@ archives:
format_overrides: format_overrides:
- goos: windows - goos: windows
formats: [zip] formats: [zip]
# Explizit stabil, damit Fleet-Download-URLs vorhersehbar bleiben:
# .../releases/download/<tag>/agent-lib_<os>_<arch>.<ext>
name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
release: release:
github:
owner: m3tam3re
name: agent-lib
draft: false draft: false
prerelease: auto prerelease: auto
mode: append mode: append