From ece1b50eb04a56dc585acd9b6522c10cb5696f40 Mon Sep 17 00:00:00 2001 From: aiqinxuancai Date: Tue, 30 Jan 2024 16:31:39 +0800 Subject: [PATCH] =?UTF-8?q?release=E5=A2=9E=E5=8A=A0=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/msbuild.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/msbuild.yml b/.github/workflows/msbuild.yml index 627175b..53235d2 100644 --- a/.github/workflows/msbuild.yml +++ b/.github/workflows/msbuild.yml @@ -30,10 +30,14 @@ jobs: msbuild ${{env.SOLUTION_FILE_PATH}} -t:rebuild -verbosity:diag -property:Configuration=${{env.BUILD_CONFIGURATION}} -property:Platform=${{env.BUILD_PLATFORM}} - name: Compress-Archive - run: powershell Compress-Archive -Path "bin/${{env.BUILD_CONFIGURATION}}/AutoLinker.fne" -DestinationPath "AutoLinker.zip" + run: | + $tagName = ${{ github.ref }} -replace 'refs/tags/', '' + $zipPath = "AutoLinker-$tagName.zip" + powershell Compress-Archive -Path "bin/${{env.BUILD_CONFIGURATION}}/AutoLinker.fne" -DestinationPath $zipPath + - name: Create a Release uses: ncipollo/release-action@v1 with: - artifacts: "AutoLinker.zip" + artifacts: "AutoLinker-$tagName.zip" token: ${{ secrets.GITHUB_TOKEN }}