User Manual: Remove old files for when deploying #7

Merged
Bart van der Braak merged 4 commits from Blendify/blender-devops:manual-doc-rsync-delete into main 2024-10-04 10:56:45 +02:00

View File

@ -216,7 +216,14 @@ def deliver(builder: ManualBuilder) -> None:
# Sync html files # Sync html files
source_path = f"{builder.build_path}/{doc_format}/{locale}/" source_path = f"{builder.build_path}/{doc_format}/{locale}/"
dest_path = f"{connect_id}:{version_remote_path}/" dest_path = f"{connect_id}:{version_remote_path}/"
worker.utils.rsync(source_path, dest_path, exclude_paths=[".doctrees"]) # Exclude packaged download files; these get synced with `needs_package_delivery`.
worker.utils.rsync(
source_path,
dest_path,
exclude_paths=[".doctrees", "blender_manual_*.zip"],
delete=True,
delete_path_check=version_remote_path
)
# Create links # Create links
if builder.track_id == "vdev": if builder.track_id == "vdev":