CI/CD: 修改action 中的错误

This commit is contained in:
Zhao Lei 2024-10-29 13:23:07 +08:00 committed by GitHub
parent 59a8b3164a
commit 8b2c594880
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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