From cc99ace4743a3d84672d34e13c9c6508035878a8 Mon Sep 17 00:00:00 2001 From: lkhsss Date: Tue, 12 Aug 2025 22:53:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=87=AA=E5=8A=A8=E6=9E=84?= =?UTF-8?q?=E5=BB=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a44d516..6bf9fc5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -136,9 +136,18 @@ jobs: uses: softprops/action-gh-release@v2 if: ${{ startsWith(github.ref, 'refs/tags/') }} with: - draft: false + draft: true files: ${{ steps.package.outputs.archive }} prerelease: ${{ steps.check-tag.outputs.rc == 'true' }} + release: + name: Turn draft to false + if: ${{ needs.release.outputs.rc == 'false' }} + needs: release + steps: + - uses: actions/checkout@v4 + - uses: softprops/action-gh-release@v2 + with: + draft: false publish-crate: name: Publish to crates.io