From 3b08ddf6aa7c76b364025124ae90dbe3d9cca200 Mon Sep 17 00:00:00 2001 From: xaoyaoo Date: Sun, 4 Aug 2024 14:03:50 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E8=AF=A6=E7=BB=86=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E7=9A=84=E6=98=BE=E7=A4=BA=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/release_new_version.py | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/tests/release_new_version.py b/tests/release_new_version.py index fab2e11..f240629 100644 --- a/tests/release_new_version.py +++ b/tests/release_new_version.py @@ -11,7 +11,7 @@ import time # 获取当前文件所在目录 current_path = os.path.dirname(os.path.abspath(__file__)) -PyWxDump_path = os.path.dirname((current_path)) +PyWxDump_path = os.path.dirname(current_path) os.chdir(PyWxDump_path) version_path = os.path.join(PyWxDump_path, "pywxdump", "__init__.py") @@ -24,9 +24,19 @@ with open(version_path, "r", encoding="utf-8") as f: else: raise RuntimeError("version not found") -# print("PyWxDump_path", PyWxDump_path) -# print("version", version) -print(f"git tag -a v{version} -m 'v{version} release'") +print(f"{PyWxDump_path=}") +print(f"{version=}") os.system(f"git tag -a v{version} -m 'v{version}'") time.sleep(1) os.system(f"git push origin v{version}") + +print("发布成功 master") + +pywxdumpweb_path = os.path.join(os.path.dirname(PyWxDump_path), "wxdump_web") +os.chdir(pywxdumpweb_path) +print(f"{pywxdumpweb_path=}") +print(f"{version=}") +os.system(f"git tag -a v{version} -m 'v{version}'") +time.sleep(1) +os.system(f"git push origin v{version}") +print("发布成功 wxdump_web") \ No newline at end of file