JustSong 2 rokov pred
rodič
commit
396fa24445

+ 4 - 0
.github/workflows/linux-release.yml

@@ -1,4 +1,6 @@
 name: Linux Release
+permissions:
+  contents: write
 
 on:
   push:
@@ -45,5 +47,7 @@ jobs:
           files: |
             one-api
             one-api-arm64
+          draft: true
+          generate_release_notes: true
         env:
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

+ 4 - 0
.github/workflows/macos-release.yml

@@ -1,4 +1,6 @@
 name: macOS Release
+permissions:
+  contents: write
 
 on:
   push:
@@ -36,5 +38,7 @@ jobs:
         if: startsWith(github.ref, 'refs/tags/')
         with:
           files: one-api-macos
+          draft: true
+          generate_release_notes: true
         env:
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

+ 4 - 0
.github/workflows/windows-release.yml

@@ -1,4 +1,6 @@
 name: Windows Release
+permissions:
+  contents: write
 
 on:
   push:
@@ -39,5 +41,7 @@ jobs:
         if: startsWith(github.ref, 'refs/tags/')
         with:
           files: one-api.exe
+          draft: true
+          generate_release_notes: true
         env:
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}