add automatic release asset uploading to build script
This commit is contained in:
@@ -36,3 +36,20 @@ for rid in RIDS:
|
|||||||
|
|
||||||
print(f"==> ZIPPING: {rid}")
|
print(f"==> ZIPPING: {rid}")
|
||||||
os.system(rf"tar czvf ./pub/{rid}.tar.gz -C ./pub/ {rid} >> /dev/null")
|
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")
|
||||||
|
|||||||
Reference in New Issue
Block a user