mirror of
https://github.com/suchmememanyskill/CYD-Klipper.git
synced 2026-03-21 13:43:25 +00:00
Bulletproof ci.py (#107)
This commit is contained in:
5
ci.py
5
ci.py
@@ -81,7 +81,10 @@ for port in CYD_PORTS:
|
|||||||
add_configuration(port)
|
add_configuration(port)
|
||||||
|
|
||||||
os.chdir(BASE_DIR)
|
os.chdir(BASE_DIR)
|
||||||
shutil.copytree("./out", "./_site/out")
|
out_dir = "./_site/out"
|
||||||
|
if os.path.exists(out_dir):
|
||||||
|
shutil.rmtree(out_dir)
|
||||||
|
shutil.copytree("./out", out_dir)
|
||||||
|
|
||||||
with open("./_site/OTA.json", "w") as f:
|
with open("./_site/OTA.json", "w") as f:
|
||||||
json.dump({"Configurations": configurations}, f)
|
json.dump({"Configurations": configurations}, f)
|
||||||
|
|||||||
Reference in New Issue
Block a user