Skip to content

Commit

Permalink
Bulletproof ci.py (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
Abrynos committed Jun 10, 2024
1 parent 90fd1b0 commit d69446a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ci.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,10 @@ def add_configuration(board : str):
add_configuration(port)

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:
json.dump({"Configurations": configurations}, f)

0 comments on commit d69446a

Please sign in to comment.