Skip to content

Commit

Permalink
Update msbuild.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
illusion0001 authored Jul 7, 2024
1 parent 2b18dcc commit d3c6e7a
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/msbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
runs-on: windows-latest
env:
BUILD_CONFIGURATION: Release
BRANCH: ${{ github.ref_name }}
permissions:
contents: write
steps:
Expand Down Expand Up @@ -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

0 comments on commit d3c6e7a

Please sign in to comment.