ci: use built-in Gitea Actions token for release publish

Drops the need for a manually-managed RELEASE_TOKEN secret; adds
contents:write permission so github.token can create the release.
This commit is contained in:
2026-06-01 12:36:26 +03:00
parent 27304992a0
commit 9ef788fe5b
+4 -1
View File
@@ -5,6 +5,9 @@ on:
tags:
- 'v*.*.*'
permissions:
contents: write
jobs:
build:
runs-on: windows
@@ -70,7 +73,7 @@ jobs:
- name: Publish Gitea release
shell: pwsh
env:
TOKEN: ${{ secrets.RELEASE_TOKEN }}
TOKEN: ${{ github.token }}
run: |
$ver = '${{ steps.ver.outputs.version }}'
$tag = "v$ver"