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