From 710c6a6ee79a72060aac35c16fbe3ed494b45265 Mon Sep 17 00:00:00 2001 From: Huite Bootsma Date: Sun, 17 Dec 2023 21:23:27 +0100 Subject: [PATCH] Print a little info --- .github/workflows/create_archive.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/create_archive.py b/.github/workflows/create_archive.py index 8cc248d..bdc9e86 100644 --- a/.github/workflows/create_archive.py +++ b/.github/workflows/create_archive.py @@ -7,10 +7,13 @@ # Use the RUNNER_OS variable on the Github Runner. Use platform system locally. system = os.environ.get("RUNNER_OS", platform.system()) zippath = shutil.make_archive(f"dist/gistim-{system}", "zip", "dist/gistim") +print(f"Created: {zippath}") # Create a checksum with open(zippath, "rb", buffering=0) as f: sha256_hash = hashlib.file_digest(f, "sha256").hexdigest() -with open(f"dist/sha256-checksum-{system}.txt", "w") as f: +txt_path = f"dist/sha256-checksum-{system}.txt" +print(f"Writing checksum to: {txt_path}") +with open(txt_path, "w") as f: f.write(sha256_hash)