diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 21414b97c..3d258b87f 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -101,13 +101,13 @@ jobs: $tag=$env:GITHUB_SHA.SubString(0,7) $branch=$($env:GITHUB_REF -replace 'refs/heads/') $title="${tag}_$branch" - gh release create $tag $asset --target $env:GITHUB_SHA -t $title + if ($branch -eq 'canary_pr') { + $p='-p' + } + gh release create $tag $asset --target $env:GITHUB_SHA -t $title $p # Remove canary_ to prevent conflicts from tag $tag=$($branch -replace 'canary_') gh release delete $tag -y git push --delete origin $tag git tag -d $tag - if ($tag -eq 'pr') { - $p='-p' - } gh release create $tag $asset --target $env:GITHUB_SHA -t $branch $p