summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2021-08-15 13:43:18 +0200
committerjaseg <git@jaseg.de>2021-08-15 13:43:18 +0200
commite984a60731a599bf6e2876d9d6ff4cff35dad0aa (patch)
treef0a578aaec1c69d614325f19c12b0d6fe2cd0db0
parentfe92b473b8087cb7ead693810ed7615814e7eaf9 (diff)
downloadblog-e984a60731a599bf6e2876d9d6ff4cff35dad0aa.tar.gz
blog-e984a60731a599bf6e2876d9d6ff4cff35dad0aa.tar.bz2
blog-e984a60731a599bf6e2876d9d6ff4cff35dad0aa.zip
Update deploy.py
-rw-r--r--deploy.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/deploy.py b/deploy.py
index 23edc18..053237a 100644
--- a/deploy.py
+++ b/deploy.py
@@ -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()