From e8bc478035145573470ad508fc263f3eaf3ac432 Mon Sep 17 00:00:00 2001 From: zerlei <1445089819@qq.com> Date: Fri, 18 Oct 2024 12:44:05 +0800 Subject: [PATCH] =?UTF-8?q?CI/CD:=20=E6=9B=B4=E6=94=B9=E4=BA=86action=20?= =?UTF-8?q?=E4=B8=AD=E7=9A=84=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yaml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 51a1b22..896b2a2 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -45,9 +45,11 @@ jobs: Write-Host "VERSION=$version" >> $env:GITHUB_ENV - name: Release uses: softprops/action-gh-release@v2 - files: | - FS_win_dotnet8.zip - LICENSE - name: ${{ env.VERSION}} - draft: false - prerelease: true + if: startsWith(github.ref, 'refs/tags/') + with: + files: | + FS_win_dotnet8.zip + LICENSE + name: ${{ env.VERSION}} + draft: false + prerelease: true