CI/CD: 修改action 中的错误
This commit is contained in:
parent
59a8b3164a
commit
8b2c594880
1 changed files with 3 additions and 4 deletions
7
.github/workflows/build.yaml
vendored
7
.github/workflows/build.yaml
vendored
|
@ -41,12 +41,11 @@ 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/')
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
run: |
|
|
||||||
$version = $env:GITHUB_REF -replace 'refs/tags/', ''
|
|
||||||
Write-Host "VERSION=$version" >> $env:GITHUB_ENV
|
|
||||||
with:
|
with:
|
||||||
files: |
|
files: |
|
||||||
FS_win_dotnet8.zip
|
FS_win_dotnet8.zip
|
||||||
|
|
Loading…
Reference in a new issue