diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index 66c031e..663a14b 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -69,8 +69,6 @@ jobs: name: Create Release needs: [build-linux, build-windows] runs-on: ubuntu-latest - permissions: - contents: write steps: - name: Download Linux Artifact uses: actions/download-artifact@v4 @@ -90,8 +88,13 @@ jobs: files: | dhl-linux.tar.gz dhl-windows.zip + name: Release ${{ github.ref_name }} + tag_name: ${{ github.ref }} generate_release_notes: true draft: false prerelease: false env: + # Gitea uses "GITHUB_TOKEN" for compatibility, but it is your Gitea token. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # This ensures the action uses your Gitea API instead of GitHub. + GITHUB_API_URL: ${{ github.api_url }}