Browse Source

Use git switch for building docs

github-actions
Garrit Franke 2 years ago
parent
commit
8b05787c01
  1. 3
      build_docs.py

3
build_docs.py

@ -8,5 +8,6 @@ tags = subprocess.run(["git", "tag"], stdout=subprocess.PIPE).stdout.decode('utf
for tag in tags.split("\n"):
if tag == "":
continue
os.system("git checkout " + tag)
print("Building tag", tag)
os.system("git switch " + tag)
os.system("mdbook build --dest-dir './book/" + tag + "'")

Loading…
Cancel
Save