Преглед изворни кода

fix: 修复工作流重复创建release的问题

CaIon пре 2 месеци
родитељ
комит
2d1534dc77
2 измењених фајлова са 1 додато и 10 уклоњено
  1. 1 4
      .github/workflows/electron-build.yml
  2. 0 6
      .github/workflows/release.yml

+ 1 - 4
.github/workflows/electron-build.yml

@@ -130,13 +130,10 @@ jobs:
       - name: Download all artifacts
       - name: Download all artifacts
         uses: actions/download-artifact@v4
         uses: actions/download-artifact@v4
 
 
-      - name: Create Release
+      - name: Upload to Release
         uses: softprops/action-gh-release@v2
         uses: softprops/action-gh-release@v2
         with:
         with:
           files: |
           files: |
             windows-build/*
             windows-build/*
-          draft: false
-          prerelease: false
-          overwrite_files: true
         env:
         env:
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

+ 0 - 6
.github/workflows/release.yml

@@ -54,8 +54,6 @@ jobs:
         with:
         with:
           files: |
           files: |
             new-api-*
             new-api-*
-          draft: true
-          generate_release_notes: true
         env:
         env:
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
 
 
@@ -93,8 +91,6 @@ jobs:
         if: startsWith(github.ref, 'refs/tags/')
         if: startsWith(github.ref, 'refs/tags/')
         with:
         with:
           files: new-api-macos-*
           files: new-api-macos-*
-          draft: true
-          generate_release_notes: true
         env:
         env:
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
 
 
@@ -134,8 +130,6 @@ jobs:
         if: startsWith(github.ref, 'refs/tags/')
         if: startsWith(github.ref, 'refs/tags/')
         with:
         with:
           files: new-api-*.exe
           files: new-api-*.exe
-          draft: true
-          generate_release_notes: true
         env:
         env:
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}