File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed
readthedocs/projects/tasks Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -628,13 +628,20 @@ def get_valid_artifact_types(self):
628
628
},
629
629
)
630
630
631
- # TODO: improve this renaming :)
632
631
if artifact_format_files == 1 :
632
+ # Rename file as "<project_slug>-<version_slug>.<artifact_type>",
633
+ # which is the filename that Proxito serves for offline formats
633
634
filename = list_dir [0 ]
634
635
_ , extension = filename .rsplit ("." )
635
- shutil .mv (
636
- list_dir [0 ],
637
- f"{ self .data .project .slug } -{ self .data .version .slug } .{ extension } " ,
636
+ shutil .move (
637
+ os .path .join (
638
+ artifact_directory ,
639
+ list_dir [0 ],
640
+ ),
641
+ os .path .join (
642
+ artifact_directory ,
643
+ f"{ self .data .project .slug } -{ self .data .version .slug } .{ extension } " ,
644
+ ),
638
645
)
639
646
640
647
# If all the conditions were met, the artifact is valid
You can’t perform that action at this time.
0 commit comments