fix(ci): 使用内置 token 修复 Release 发布鉴权

This commit is contained in:
real-zony committed 2026-11-09 19:15:59 -08:00
1 parent 68c8075a60
commit c429a883ad
2 files changed
+4 -1

No files matched your search

+3 -1
View File
@@ -137,6 +137,8 @@ jobs:
# Release Job - 合并所有平台的构建产物 # Release Job - 合并所有平台的构建产物
release: release:
if: github.event_name == 'push' if: github.event_name == 'push'
permissions:
contents: write
needs: [build-linux-windows, build-macos, build-desktop] needs: [build-linux-windows, build-macos, build-desktop]
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
@@ -161,7 +163,7 @@ jobs:
uses: ncipollo/release-action@v1 uses: ncipollo/release-action@v1
with: with:
artifacts: "./TempFiles/*.zip" artifacts: "./TempFiles/*.zip"
token: ${{ secrets.GITHUBACTIONS }} token: ${{ github.token }}
tag: ZonyLrcToolsX_Alpha.${{ needs.build-linux-windows.outputs.version }} tag: ZonyLrcToolsX_Alpha.${{ needs.build-linux-windows.outputs.version }}
commit: dev commit: dev
bodyFile: ./versions/release.md bodyFile: ./versions/release.md
+1
View File
@@ -15,3 +15,4 @@ Fixed Bugs:
- [#172] Correct KGG/KGM detection, QMC2 map decoding, unpadded ekey decoding and concurrent output handling. - [#172] Correct KGG/KGM detection, QMC2 map decoding, unpadded ekey decoding and concurrent output handling.
- [#172] Keep decrypted key databases in memory; prevent canceled downloads from publishing partial files. - [#172] Keep decrypted key databases in memory; prevent canceled downloads from publishing partial files.
- [#172] Fix QR login races, stale scan results, desktop task threading and trimmed session serialization. - [#172] Fix QR login races, stale scan results, desktop task threading and trimmed session serialization.
- Fix release authentication by using the built-in GitHub token with `contents: write` permission scoped to the release job.