Herpaderp, copy not move
This commit is contained in:
parent
056323979d
commit
c0fcd11ea0
8
tasks.py
8
tasks.py
|
@ -1,5 +1,6 @@
|
||||||
|
from os import mkdir
|
||||||
from os.path import join
|
from os.path import join
|
||||||
from shutil import rmtree, move
|
from shutil import rmtree, copytree
|
||||||
|
|
||||||
from invoke import Collection, ctask as task
|
from invoke import Collection, ctask as task
|
||||||
from invocations import docs as _docs
|
from invocations import docs as _docs
|
||||||
|
@ -38,8 +39,9 @@ def coverage(ctx):
|
||||||
@task('docs') # Will invoke the API doc site build
|
@task('docs') # Will invoke the API doc site build
|
||||||
def release(ctx):
|
def release(ctx):
|
||||||
# Move the built docs into where Epydocs used to live
|
# Move the built docs into where Epydocs used to live
|
||||||
rmtree('docs')
|
target = 'docs'
|
||||||
move(docs_build, 'docs')
|
rmtree(target, ignore_errors=True)
|
||||||
|
copytree(docs_build, target)
|
||||||
# Publish
|
# Publish
|
||||||
publish(ctx)
|
publish(ctx)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue