added the build command
This commit is contained in:
@@ -53,7 +53,7 @@ def publish(args):
|
||||
sys.exit(1)
|
||||
|
||||
# compress to a tar file
|
||||
console.status("Compressing")
|
||||
console.status("Compressing", spinner_style="green")
|
||||
f = tempfile.TemporaryFile(mode="wb+")
|
||||
with tarfile.open(fileobj=f, mode="w:gz") as tar_file:
|
||||
tar_file.add(args.folder_path, arcname=os.path.basename(args.folder_path))
|
||||
@@ -63,7 +63,7 @@ def publish(args):
|
||||
console.print("[d][:white_check_mark:] Compressed![/]")
|
||||
|
||||
# send the request
|
||||
status.update("Uploading...")
|
||||
status.update("Uploading...", spinner_style="blue")
|
||||
response = requests.put(
|
||||
url=f"https://chookspace.com/api/packages/ground/generic/{mineral_name}/{version}/mineral.tar",
|
||||
data=f,
|
||||
|
||||
Reference in New Issue
Block a user