diff --git a/shell/pub.sh b/shell/pub.sh index 2fb94fd4..d9fba954 100644 --- a/shell/pub.sh +++ b/shell/pub.sh @@ -13,6 +13,10 @@ git push echo -e "更新cdn文件" ts-node sample/tool.ts +string=$(cat version.yaml | grep "version" | egrep "[^ ]*" -o | egrep "\d\.*") +version="v$string" +echo -e "当前版本$version" + echo -e "删除已经存在的本地tag" git tag -d "$version" &>/dev/null