From f761a0fa69f815adc63eabe000fda22c59325972 Mon Sep 17 00:00:00 2001 From: lanrtop Date: Thu, 2 Apr 2026 13:17:29 +0900 Subject: [PATCH] fix: pre-create release to work around token permission issue --- .github/workflows/release.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ee66658..1d48c2e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -46,7 +46,19 @@ jobs: $lines = $env:TAURI_SIGNING_PRIVATE_KEY.Split("`n").Count Write-Host "TAURI_SIGNING_PRIVATE_KEY is set ($lines lines)" - # 构建 Tauri 应用,tauri-action 自动签名并创建 GitHub Release + # 先创建 GitHub Release(解决 tauri-action 权限问题) + - name: Create Release + uses: softprops/action-gh-release@v2 + with: + tag_name: ${{ github.ref_name }} + name: Dev Manager ${{ github.ref_name }} + body: | + ## 更新内容 + 请查看提交记录了解详情。 + draft: false + prerelease: false + + # 构建 Tauri 应用,tauri-action 发现已有 Release 后只上传文件 - name: Build & Release uses: tauri-apps/tauri-action@v0 env: