diff --git a/shell/pub.sh b/shell/pub.sh index 76faa285..4ca7c7c2 100644 --- a/shell/pub.sh +++ b/shell/pub.sh @@ -21,6 +21,7 @@ echo -e "删除已经存在的本地tag" git tag -d "$version" &>/dev/null echo -e "删除已经存在的远程tag" +git push origin :refs/tags/$version &>/dev/null echo -e "创建新tag" git tag -a "$version" -m "release $version"