From 323af22356a23ef15c28c743c699f2ce9eca951a Mon Sep 17 00:00:00 2001 From: autumn <34-paradoxical_autumn@users.noreply.gitlab.1024cats.social> Date: Tue, 17 Feb 2026 23:28:54 +0000 Subject: [PATCH] add automatic release asset uploading to build script --- mc-manager/BUILD.py | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/mc-manager/BUILD.py b/mc-manager/BUILD.py index 088e0b8..04aefd5 100644 --- a/mc-manager/BUILD.py +++ b/mc-manager/BUILD.py @@ -35,4 +35,21 @@ for rid in RIDS: raise OSError("Build error") print(f"==> ZIPPING: {rid}") - os.system(rf"tar czvf ./pub/{rid}.tar.gz -C ./pub/ {rid} >> /dev/null") \ No newline at end of file + os.system(rf"tar czvf ./pub/{rid}.tar.gz -C ./pub/ {rid} >> /dev/null") + +os.chdir("pub") + +while True: + upload = input("Do you want to upload the release assets? (Y/N)") + if upload.lower() not in ["y", "n"]: + print("Please enter either Y or N.") + continue + + if upload.lower() == "y": + break + else: + exit() + +print("doing the thing") + +os.system(rf"echo glob release upload {CURRENT_TIMESTAMP} ./*.tar.gz")