From 44fdc2eec66e1eecdee7a13f375fbd9629ee29e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E8=88=AA=E5=AE=87?= <3364451258@qq.com> Date: Wed, 27 May 2026 00:54:07 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20release=20=E6=94=B9=E7=94=A8=20gh=20rele?= =?UTF-8?q?ase=20create=E3=80=81ci=20=E6=B7=BB=E5=8A=A0=20permissions:=20c?= =?UTF-8?q?ontents:=20read?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.7 --- .github/workflows/ci.yml | 3 +++ .github/workflows/release.yml | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2fac671..bb89c49 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,6 +7,9 @@ on: tags-ignore: - '**' +permissions: + contents: read + jobs: frontend: name: 前端检查 (TypeScript + Lint + Test) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7411286..931ff90 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -32,9 +32,9 @@ jobs: - name: Tauri Build run: npx tauri build - - name: 上传安装包到 Release + - name: 创建 Release 并上传安装包 run: | $installer = Get-ChildItem -Path "src-tauri\target\release\bundle\nsis\*.exe" | Select-Object -First 1 - gh release upload $env:GITHUB_REF_NAME "$installer" --clobber + gh release create $env:GITHUB_REF_NAME "$installer" --title "$env:GITHUB_REF_NAME" --generate-notes env: GH_TOKEN: ${{ github.token }}