From a45bc5e7a166544ca5c05eb7cdcce7b5fb767d72 Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Wed, 13 Oct 2021 12:58:47 +1100 Subject: [PATCH] Delete tag in addition to release --- .github/workflows/preview-release.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/preview-release.yml b/.github/workflows/preview-release.yml index f629fd8..edbc39c 100644 --- a/.github/workflows/preview-release.yml +++ b/.github/workflows/preview-release.yml @@ -16,5 +16,8 @@ jobs: - name: Update 'preview' release run: | - gh release delete preview || true # First delete, ignore failures + # First delete release + tag, ignore failures + gh release delete preview || true + gh api -X DELETE /repos/{owner}/{repo}/git/refs/tags/preview || true + gh release create preview --prerelease --title preview