From 14d519d010fc5e3e75789ac76275d87a951afc88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Untersch=C3=BCtz?= Date: Tue, 27 Oct 2026 18:46:38 +0100 Subject: [PATCH] Use public Gitea URL for releases and download links --- .gitea/workflows/release.yml | 10 ++++++---- CHANGELOG.md | 4 ++++ 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 1a2f53d..6099df9 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -8,6 +8,9 @@ on: jobs: release: runs-on: ubuntu-latest + env: + GITEA_PUBLIC_URL: https://git.zb-server.de + GITEA_REPOSITORY: ${{ github.repository }} steps: - uses: actions/checkout@v7 @@ -45,15 +48,14 @@ jobs: - name: Generate release notes env: RELEASE_TAG: ${{ github.ref_name }} - REPOSITORY_URL: ${{ github.server_url }}/${{ github.repository }} - run: bash scripts/release-notes.sh "$RELEASE_TAG" "$REPOSITORY_URL" > dist/release-notes.md + run: bash scripts/release-notes.sh "$RELEASE_TAG" "$GITEA_PUBLIC_URL/$GITEA_REPOSITORY" > dist/release-notes.md - name: Create release id: create_release env: TAG: ${{ github.ref_name }} run: | - API="${{ github.server_url }}/api/v1/repos/${{ github.repository }}" + API="$GITEA_PUBLIC_URL/api/v1/repos/$GITEA_REPOSITORY" AUTH="Authorization: token ${{ secrets.GITEA_TOKEN }}" # Delete existing release for this tag if present @@ -98,6 +100,6 @@ jobs: curl -sf -X POST \ -H "Authorization: token ${{ secrets.GITEA_TOKEN }}" \ -H "Content-Type: application/octet-stream" \ - "${{ github.server_url }}/api/v1/repos/${{ github.repository }}/releases/${RELEASE_ID}/assets?name=${name}" \ + "$GITEA_PUBLIC_URL/api/v1/repos/$GITEA_REPOSITORY/releases/${RELEASE_ID}/assets?name=${name}" \ --data-binary "@$file" done diff --git a/CHANGELOG.md b/CHANGELOG.md index 92b6c1f..62d8f52 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## v0.0.15 + +- Use `https://git.zb-server.de` for release download links and API requests instead of the runner's internal Gitea service URL. + ## v0.0.14 - Enable Renovate updates for indirect Go modules as well as direct dependencies and CI actions.