Skip to content

Commit

Permalink
CI: Fix Release
Browse files Browse the repository at this point in the history
  • Loading branch information
illusion0001 authored Sep 5, 2024
1 parent e0b9a2b commit 3556762
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/msbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,6 @@ jobs:
${{ env.INSTALL_CONFIGURATION }}\hashes.txt
- name: Prepare Release
if: github.event_name == 'workflow_dispatch'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
$hashMarkdown = @'
Expand Down Expand Up @@ -134,10 +132,8 @@ jobs:
DestinationPath = "${{ env.zip_name }}-x64.zip"
}
Compress-Archive @compress
- name: Create Release
- name: Branch Check
if: github.event_name == 'workflow_dispatch'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
$prerelease = ""
if ("${{ env.BRANCH }}" -ieq "main")
Expand All @@ -147,8 +143,12 @@ jobs:
}
else
{
$prerelease = "--prerelease"
$prerelease = " --prerelease"
echo "Is not main release: ${{ env.BRANCH }}"
}
& gh release create ${{ env.commit_ver }} ${{ env.zip_name }}-x64-pdb.zip ${{ env.zip_name }}-x64.zip --target ${{ GITHUB.SHA }} -t "${{ env.commit_ver }}" -F hash.md $prerelease
echo "prerelease=$prerelease" >> $Env:GITHUB_ENV
- name: Create Release
if: github.event_name == 'workflow_dispatch'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: '& gh release create ${{ env.commit_ver }} ${{ env.zip_name }}-x64-pdb.zip ${{ env.zip_name }}-x64.zip --target ${{ GITHUB.SHA }} -t "${{ env.commit_ver }}" -F hash.md${{ env.prerelease }}'

0 comments on commit 3556762

Please sign in to comment.