Compare commits

..
1 Commits
Author SHA1 Message Date
Sebastian Unterschütz 14d519d010 Use public Gitea URL for releases and download links
Release / release (push) Successful in 5m37s
2026-10-27 18:46:38 +01:00
2 changed files with 10 additions and 4 deletions

No files matched your search

+6 -4
View File
@@ -8,6 +8,9 @@ on:
jobs: jobs:
release: release:
runs-on: ubuntu-latest runs-on: ubuntu-latest
env:
GITEA_PUBLIC_URL: https://git.zb-server.de
GITEA_REPOSITORY: ${{ github.repository }}
steps: steps:
- uses: actions/checkout@v7 - uses: actions/checkout@v7
@@ -45,15 +48,14 @@ jobs:
- name: Generate release notes - name: Generate release notes
env: env:
RELEASE_TAG: ${{ github.ref_name }} RELEASE_TAG: ${{ github.ref_name }}
REPOSITORY_URL: ${{ github.server_url }}/${{ github.repository }} run: bash scripts/release-notes.sh "$RELEASE_TAG" "$GITEA_PUBLIC_URL/$GITEA_REPOSITORY" > dist/release-notes.md
run: bash scripts/release-notes.sh "$RELEASE_TAG" "$REPOSITORY_URL" > dist/release-notes.md
- name: Create release - name: Create release
id: create_release id: create_release
env: env:
TAG: ${{ github.ref_name }} TAG: ${{ github.ref_name }}
run: | 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 }}" AUTH="Authorization: token ${{ secrets.GITEA_TOKEN }}"
# Delete existing release for this tag if present # Delete existing release for this tag if present
@@ -98,6 +100,6 @@ jobs:
curl -sf -X POST \ curl -sf -X POST \
-H "Authorization: token ${{ secrets.GITEA_TOKEN }}" \ -H "Authorization: token ${{ secrets.GITEA_TOKEN }}" \
-H "Content-Type: application/octet-stream" \ -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" --data-binary "@$file"
done done
+4
View File
@@ -1,5 +1,9 @@
# Changelog # 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 ## v0.0.14
- Enable Renovate updates for indirect Go modules as well as direct dependencies and CI actions. - Enable Renovate updates for indirect Go modules as well as direct dependencies and CI actions.