mirror of https://git.sr.ht/~garritfra/sabre
Garrit Franke
3 years ago
1 changed files with 3 additions and 2 deletions
@ -1,13 +1,14 @@ |
|||||||
import subprocess |
import subprocess |
||||||
import os |
import os |
||||||
|
import time |
||||||
|
|
||||||
os.system("mdbook build --dest-dir './book'") |
os.system("mdbook build --dest-dir './book'") |
||||||
os.system("mdbook build --dest-dir './book/latest'") |
os.system("mdbook build --dest-dir './book/latest'") |
||||||
tags = subprocess.run(["git", "tag"], stdout=subprocess.PIPE).stdout.decode('utf-8') |
tags = subprocess.run(["git", "tag"], stdout=subprocess.PIPE).stdout.decode('utf-8') |
||||||
|
|
||||||
for tag in tags.split("\n"): |
for tag in tags.split("\n"): |
||||||
if tag == "": |
if tag == "": |
||||||
continue |
continue |
||||||
print("Building tag", tag) |
print("Building tag", tag) |
||||||
os.system("git switch " + tag) |
os.system("git checkout " + tag) |
||||||
|
time.sleep(1) |
||||||
os.system("mdbook build --dest-dir './book/" + tag + "'") |
os.system("mdbook build --dest-dir './book/" + tag + "'") |
||||||
|
Loading…
Reference in new issue