This commit is contained in:
Margen67 2022-06-02 12:38:50 -07:00 committed by GitHub
parent 30ac62ff1e
commit a6594d1c96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -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