From 394ee5fe0600a7146013f8e4e72caa1e06faa2ff Mon Sep 17 00:00:00 2001 From: zerlei <1445089819@qq.com> Date: Fri, 18 Oct 2024 12:39:32 +0800 Subject: [PATCH] =?UTF-8?q?CI/CD:=20=E6=9B=B4=E6=94=B9=E4=BA=86action=20?= =?UTF-8?q?=E4=B8=AD=E7=9A=84=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 336e909..2358196 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -44,10 +44,13 @@ jobs: - 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 with: files: | FS_win_dotnet8.zip LICENSE - name: ${{ replace(github.ref, 'refs/tags/', '') }} + name: ${{ env.VERSION}} draft: false prerelease: true