mirror of
https://github.com/LHY0125/PathEditor.git
synced 2026-06-29 09:55:56 +08:00
fix: release 改用 gh release create、ci 添加 permissions: contents: read
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -7,6 +7,9 @@ on:
|
|||||||
tags-ignore:
|
tags-ignore:
|
||||||
- '**'
|
- '**'
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
frontend:
|
frontend:
|
||||||
name: 前端检查 (TypeScript + Lint + Test)
|
name: 前端检查 (TypeScript + Lint + Test)
|
||||||
|
|||||||
@@ -32,9 +32,9 @@ jobs:
|
|||||||
- name: Tauri Build
|
- name: Tauri Build
|
||||||
run: npx tauri build
|
run: npx tauri build
|
||||||
|
|
||||||
- name: 上传安装包到 Release
|
- name: 创建 Release 并上传安装包
|
||||||
run: |
|
run: |
|
||||||
$installer = Get-ChildItem -Path "src-tauri\target\release\bundle\nsis\*.exe" | Select-Object -First 1
|
$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:
|
env:
|
||||||
GH_TOKEN: ${{ github.token }}
|
GH_TOKEN: ${{ github.token }}
|
||||||
|
|||||||
Reference in New Issue
Block a user