CI/CD: 更改了action 中的错误
This commit is contained in:
parent
394ee5fe06
commit
20ee8714de
1 changed files with 8 additions and 11 deletions
19
.github/workflows/build.yaml
vendored
19
.github/workflows/build.yaml
vendored
|
@ -41,16 +41,13 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
cp Tool/JsScript/* release/JsScript/
|
cp Tool/JsScript/* release/JsScript/
|
||||||
Compress-Archive -Path "release/*" -DestinationPath "FS_win_dotnet8.zip" -Force
|
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
|
- name: Release
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
files: |
|
||||||
run: |
|
FS_win_dotnet8.zip
|
||||||
$version = $env:GITHUB_REF -replace 'refs/tags/', ''
|
LICENSE
|
||||||
Write-Host "VERSION=$version" >> $env:GITHUB_ENV
|
name: ${{ env.VERSION}}
|
||||||
with:
|
draft: false
|
||||||
files: |
|
prerelease: true
|
||||||
FS_win_dotnet8.zip
|
|
||||||
LICENSE
|
|
||||||
name: ${{ env.VERSION}}
|
|
||||||
draft: false
|
|
||||||
prerelease: true
|
|
||||||
|
|
Loading…
Reference in a new issue