Merge pull request #173 from real-zony/fix/release-token
.NET / build-linux-windows (push) Canceled after 0s
.NET / build-desktop (push) Canceled after 0s
.NET / build-macos (push) Canceled after 0s
.NET / release (push) Canceled after 0s

fix(ci): 使用内置 token 修复 Release 发布鉴权
This commit is contained in:
Zony authored and GitHub committed 2026-11-09 19:33:10 -08:00
commit f66f87d5ce
2 files changed
+5 -2

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
+2 -1
View File
@@ -14,4 +14,5 @@ Fixed Bugs:
- [#167] Handle macOS code signing issues. (处理 macOS 代码签名问题。) - [#167] Handle macOS code signing issues. (处理 macOS 代码签名问题。)
- [#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.