From 6ecb7970a87d23de18ded0038beb667487725c10 Mon Sep 17 00:00:00 2001 From: Zhichang Yu Date: Tue, 26 Dec 2023 13:06:23 +0800 Subject: [PATCH] fix --- .github/workflows/release.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0457b4e..776a25f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -37,12 +37,13 @@ jobs: - name: Build source tarball run: git archive --format=tar HEAD | gzip > archive.tgz - - name: Remove the tag if it's existing and mutable, let action-gh-release create it. + - name: Move the existing mutable tag # https://github.com/softprops/action-gh-release/issues/171 run: | if [[ $RELEASE_TAG != v* ]]; then echo "try removing mutalbe tag $RELEASE_TAG" - git push origin :refs/tags/$RELEASE_TAG || true + git tag -f $RELEASE_TAG + git push -f origin $RELEASE_TAG:refs/tags/$RELEASE_TAG fi - name: Create or overwrite a release