From d3c6e7a96e71e5701d035836b7c1dfbbb4621099 Mon Sep 17 00:00:00 2001 From: illusion0001 <37698908+illusion0001@users.noreply.github.com> Date: Sat, 6 Jul 2024 21:09:24 -0500 Subject: [PATCH] Update msbuild.yml --- .github/workflows/msbuild.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/msbuild.yml b/.github/workflows/msbuild.yml index 7837b62..91b47d4 100644 --- a/.github/workflows/msbuild.yml +++ b/.github/workflows/msbuild.yml @@ -20,6 +20,7 @@ jobs: runs-on: windows-latest env: BUILD_CONFIGURATION: Release + BRANCH: ${{ github.ref_name }} permissions: contents: write steps: @@ -119,4 +120,15 @@ jobs: DestinationPath = "${{ env.zip_name }}.zip" } Compress-Archive @compress - gh release create ${{ env.commit_ver }} ${{ env.ZIP_NAME }}.zip --target ${{ GITHUB.SHA }} -t "${{ env.commit_ver }}" -F hash.md # --draft --prerelease + $tag = "--prerelease" + if (${{ env.BRANCH }} -ieq "main") + { + $tag = "" + echo "${{ env.BRANCH }} is main" + } + else if (${{ env.BRANCH }} -ieq "benchmark") + { + echo "benchmark branch" + } + echo $tag + gh release create ${{ env.commit_ver }} ${{ env.ZIP_NAME }}.zip --target ${{ GITHUB.SHA }} -t "${{ env.commit_ver }}" -F hash.md $tag