Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yuzhichang committed Dec 26, 2023
1 parent f1e78da commit 6ecb797
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6ecb797

Please sign in to comment.