CI/CD: 更改了action 中的错误
This commit is contained in:
parent
4c90c08e89
commit
394ee5fe06
1 changed files with 4 additions and 1 deletions
5
.github/workflows/build.yaml
vendored
5
.github/workflows/build.yaml
vendored
|
@ -44,10 +44,13 @@ jobs:
|
||||||
- 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
|
||||||
LICENSE
|
LICENSE
|
||||||
name: ${{ replace(github.ref, 'refs/tags/', '') }}
|
name: ${{ env.VERSION}}
|
||||||
draft: false
|
draft: false
|
||||||
prerelease: true
|
prerelease: true
|
||||||
|
|
Loading…
Reference in a new issue