From 97a1706317ec063d7fc1807f3885b6d8e92fad9f Mon Sep 17 00:00:00 2001 From: marqdo-knowledge Date: Thu, 26 Nov 2026 09:07:03 +0800 Subject: [PATCH] fix(release): create parent directories for staged documentation files docs/STATUS.md, docs/ci.md and docs/releasing.md live below docs/, so the staging copy needs an explicit parent mkdir. --- tools/release/package.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/release/package.py b/tools/release/package.py index bd4832a..74c2825 100755 --- a/tools/release/package.py +++ b/tools/release/package.py @@ -155,7 +155,9 @@ def build_stage(stage: Path, version: str, source_sha: str, commit_time: datetim source = ROOT / name if not source.is_file(): fail(f"missing required file {name}") - shutil.copyfile(source, stage / name) + destination = stage / name + destination.parent.mkdir(parents=True, exist_ok=True) + shutil.copyfile(source, destination) shutil.copyfile(ROOT / "packaging/tool.json", stage / "tool.json") for tree in COPY_TREES: