Make the currently released version available on the website
This commit is contained in:
parent
c2f6450af3
commit
12e269e791
@ -66,6 +66,8 @@ def run_website(args):
|
|||||||
if os.path.exists(publish_dir):
|
if os.path.exists(publish_dir):
|
||||||
shutil.rmtree(publish_dir)
|
shutil.rmtree(publish_dir)
|
||||||
shutil.copytree(os.path.join(docs_dir, '_build', 'html'), publish_dir)
|
shutil.copytree(os.path.join(docs_dir, '_build', 'html'), publish_dir)
|
||||||
|
with open(os.path.join(publish_dir, 'current-version.txt'), 'w') as f:
|
||||||
|
f.write(version)
|
||||||
shutil.copy2(os.path.join(docs_dir, 'installer.sh'), publish_dir)
|
shutil.copy2(os.path.join(docs_dir, 'installer.sh'), publish_dir)
|
||||||
installer = os.path.join(docs_dir, 'installer.py')
|
installer = os.path.join(docs_dir, 'installer.py')
|
||||||
subprocess.check_call([
|
subprocess.check_call([
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user