From 396fa24445754352c1a1d570787a8d92fa87469e Mon Sep 17 00:00:00 2001 From: JustSong Date: Sun, 23 Apr 2023 19:36:27 +0800 Subject: [PATCH] Fix GitHub Actions --- .github/workflows/linux-release.yml | 4 ++++ .github/workflows/macos-release.yml | 4 ++++ .github/workflows/windows-release.yml | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/.github/workflows/linux-release.yml b/.github/workflows/linux-release.yml index 2696fbfb..6833a901 100644 --- a/.github/workflows/linux-release.yml +++ b/.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 }} \ No newline at end of file diff --git a/.github/workflows/macos-release.yml b/.github/workflows/macos-release.yml index 7f4e48b1..5ec789c1 100644 --- a/.github/workflows/macos-release.yml +++ b/.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 }} diff --git a/.github/workflows/windows-release.yml b/.github/workflows/windows-release.yml index 525f0524..fa5bb995 100644 --- a/.github/workflows/windows-release.yml +++ b/.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 }} \ No newline at end of file