From 6c68ddae924e42148dad180de98240d97f313814 Mon Sep 17 00:00:00 2001 From: Margen67 Date: Sat, 5 Mar 2022 00:52:16 -0800 Subject: [PATCH] CI: Also delete tags --- .github/workflows/CI.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 91fa59440..98adbed0d 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -84,5 +84,6 @@ jobs: # Remove canary_ to prevent conflicts from tag $tag=$($branch -replace 'canary_', '') gh release delete $tag -y - If ($LastExitCode -ne 0) { echo "LastExitCode = $LastExitCode";$LastExitCode = 0 } + git push --delete origin $tag + git tag -d $tag gh release create $tag $asset --target $env:GITHUB_SHA -t $branch