Skip to content

Commit 0007b60

Browse files
authored
Attempt to update the upload scripts (#2075)
We were not publishing redirects or cleaning up old site names. We had functions for this that were not being called. I am just calling the forgotten functions I have not tested this! We should test before we merge.
1 parent 580803d commit 0007b60

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

scripts/upload.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,9 @@ def upload_redirects(directory):
133133
if __name__ == "__main__":
134134
root = Path(__file__).parent.parent.resolve()
135135
hash_cache = load_hash_cache()
136-
hash_cache = upload_dir(
137-
os.path.join(root, "site"), include_img=True, hash_cache=hash_cache
138-
)
136+
site_directory = os.path.join(root, "site")
137+
redirect_directory = os.path.join(root, "redirects")
138+
hash_cache = upload_dir(site_directory, hash_cache=hash_cache)
139+
upload_redirects(redirect_directory)
140+
cleanup(site_directory, redirect_directory)
139141
save_hash_cache(hash_cache)

0 commit comments

Comments
 (0)