From 20ee8714deec5c338091f1634c929534875a2135 Mon Sep 17 00:00:00 2001 From: zerlei <1445089819@qq.com> Date: Fri, 18 Oct 2024 12:42:03 +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 | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 2358196..51a1b22 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -41,16 +41,13 @@ 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 - with: - files: | - FS_win_dotnet8.zip - LICENSE - name: ${{ env.VERSION}} - draft: false - prerelease: true + files: | + FS_win_dotnet8.zip + LICENSE + name: ${{ env.VERSION}} + draft: false + prerelease: true