Skip to content

Commit

Permalink
2
Browse files Browse the repository at this point in the history
  • Loading branch information
shenlebantongying committed Jul 7, 2024
1 parent 15db240 commit 1b641d0
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/release-windows-vcpkg-cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,13 @@ jobs:
${{steps.build_changelog.outputs.changelog}}
"
$tagExist = gh api --silent "repos/:owner/:repo/git/refs/tags/${{github.ref_name}}"
if ($tagExist -neq $null){
gh release create ${tagName} --target ${{github.ref_name}} --notes "${changeNotes}"
if (-not $?) {
if ($env:prerelease -eq "true") {
gh release create ${tagName} --target ${{github.ref_name}} --notes "${changeNotes}" --latest=false
} else {
gh release create ${tagName} --target ${{github.ref_name}} --notes "${changeNotes}" --latest=true
}
}
cd './build_dir'
Expand Down

0 comments on commit 1b641d0

Please sign in to comment.