mirror of https://git.sr.ht/~garritfra/sabre
Garrit Franke
3 years ago
2 changed files with 12 additions and 13 deletions
@ -0,0 +1,12 @@
|
||||
import subprocess |
||||
import os |
||||
|
||||
os.system("mkdir ./book/latest") |
||||
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 |
||||
os.system("git checkout " + tag) |
||||
os.system("mdbook build --dest-dir './book/" + tag + "'") |
Loading…
Reference in new issue