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.
This commit is contained in:
1 parent
7a39a88d17
commit
97a1706317
1 file changed
+3
-1
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user