From 08ee61b179f1bafd310ccc7c21e728b3cb825a6f Mon Sep 17 00:00:00 2001 From: whyour Date: Wed, 28 Dec 2022 11:14:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20pub=20=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shell/pub.sh | 4 ++++ 1 file changed, 4 insertions(+) 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