summaryrefslogtreecommitdiff
path: root/deploy.py
diff options
context:
space:
mode:
Diffstat (limited to 'deploy.py')
-rw-r--r--deploy.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/deploy.py b/deploy.py
index 129d53b..f0cab5c 100644
--- a/deploy.py
+++ b/deploy.py
@@ -18,7 +18,8 @@ if __name__ == '__main__':
try:
env = dict(os.environ)
env['PATH'] = f'{Path("hack").absolute()}:{env["PATH"]}'
- subprocess.run(['hugo'], cwd=tmpdir, check=True, env=env)
+ hugo = os.environ.get('HUGO', 'hugo')
+ subprocess.run([hugo], cwd=tmpdir, check=True, env=env)
subprocess.run([pagefind, '--site', 'public'], cwd=tmpdir, check=True, env=env)
subprocess.run(['git', 'add', '--force', 'public'], cwd=tmpdir, check=True)
write_tree = subprocess.run(['git', 'write-tree', '--prefix=public/'], cwd=tmpdir, check=True, capture_output=True)