From 8b2c59488030f2a01e31760e2fedd45a919cccc4 Mon Sep 17 00:00:00 2001 From: Zhao Lei <1445089819@qq.com> Date: Tue, 29 Oct 2024 13:23:07 +0800 Subject: [PATCH] =?UTF-8?q?CI/CD:=20=E4=BF=AE=E6=94=B9action=20=E4=B8=AD?= =?UTF-8?q?=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 | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 2358196..f89d453 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -41,12 +41,11 @@ jobs: run: | cp Tool/JsScript/* release/JsScript/ Compress-Archive -Path "release/*" -DestinationPath "FS_win_dotnet8.zip" -Force + $version = $env:GITHUB_REF -replace 'refs/tags/', '' + Write-Host "VERSION=$version" >> $env:GITHUB_ENV - name: Release uses: softprops/action-gh-release@v2 - if: startsWith(github.ref, 'refs/tags/') - run: | - $version = $env:GITHUB_REF -replace 'refs/tags/', '' - Write-Host "VERSION=$version" >> $env:GITHUB_ENV + if: startsWith(github.ref, 'refs/tags/') with: files: | FS_win_dotnet8.zip