Forráskód Böngészése

ci: 重新挂上 tag 后把 GitHub Release 从 draft 发布出去

Co-authored-by: darknessomi <darknessomi@users.noreply.github.com>
Cursor Agent 1 hónapja
szülő
commit
c5acfe6798
1 módosított fájl, 2 hozzáadás és 2 törlés
  1. 2 2
      .github/workflows/build.yml

+ 2 - 2
.github/workflows/build.yml

@@ -122,7 +122,7 @@ jobs:
           if ! gh release view "$tag" >/dev/null 2>&1; then
             gh release create "$tag" --title "QMAI $tag" --notes-file "$notes_path" --verify-tag || true
           fi
-          gh release edit "$tag" --notes-file "$notes_path"
+          gh release edit "$tag" --notes-file "$notes_path" --draft=false
 
       - name: Build Tauri app
         env:
@@ -187,7 +187,7 @@ jobs:
           $latestPath = Join-Path $releaseDir "latest.json"
           $latest.notes = $notes
           $latest | ConvertTo-Json -Depth 5 | Set-Content -Path $latestPath -Encoding utf8
-          gh release edit "${{ github.ref_name }}" --notes-file $notesPath
+          gh release edit "${{ github.ref_name }}" --notes-file $notesPath --draft=false
           gh release upload "${{ github.ref_name }}" $assetPath $assetSignaturePath $latestPath --clobber
 
       - name: Package macOS release assets