Thomas Dy 11 lat temu
rodzic
commit
c9a508e939
1 zmienionych plików z 4 dodań i 1 usunięć
  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