Browse Source

Add deployment

Thomas Dy 11 năm trước cách đây
mục cha
commit
c9a508e939
1 tập tin đã thay đổi với 4 bổ sung1 xóa
  1. 4 1
      conf.py

+ 4 - 1
conf.py

@@ -173,7 +173,10 @@ post_compilers = {
 # "rsync -rav output/* joe@my.site:/srv/www/site"
 # And then do a backup, or ping pingomatic.
 # To do manual deployment, set it to []
-# DEPLOY_COMMANDS = []
+DEPLOY_COMMANDS = [
+    'git commit-tree -p master -m "updated" source:output | xargs git update-ref refs/heads/master',
+    'git push'
+]
 
 # Where the output site should be located
 # If you don't use an absolute path, it will be considered as relative