~garritfra/antimony

ref: 5e8aad974f24e782bf8ee9319a238ee1aa0892a0 antimony/build_docs.py -rw-r--r-- 437 bytes
5e8aad97Garrit Franke fix(ci): deploy action 11 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import subprocess
import os
import time

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