Update deploy.py

This commit is contained in:
jaseg 2021-08-15 13:43:18 +02:00
parent fe92b473b8
commit e984a60731

View file

@ -14,6 +14,7 @@ if __name__ == '__main__':
subprocess.run(['git', 'worktree', 'add', '--detach', tmpdir], check=True)
try:
subprocess.run(['hugo'], cwd=tmpdir, check=True)
subprocess.run(['git', 'add', '--force', 'public'], check=True)
write_tree = subprocess.run(['git', 'write-tree', '--prefix=public/'], check=True, capture_output=True)
tree = write_tree.stdout.strip()