more logging for CI

This commit is contained in:
Maccesch 2023-05-19 23:44:50 +01:00
parent 587b83d4c5
commit 2b92e994e7

View file

@ -20,7 +20,13 @@ def build_and_copy_demo(category, md_name):
if os.path.exists(example_dir): if os.path.exists(example_dir):
p = subprocess.Popen(["trunk", "build"], cwd=example_dir) p = subprocess.Popen(["trunk", "build"], cwd=example_dir)
p.wait() p.wait()
shutil.copytree(os.path.join(example_dir, "dist"), os.path.join("book", category, name, "demo"),
example_output_path = os.path.join(example_dir, "dist")
target_path = os.path.join("book", category, name, "demo")
print(f"Copying demo from {example_output_path} to {target_path}")
shutil.copytree(example_output_path, target_path,
dirs_exist_ok=True) dirs_exist_ok=True)