track HTML changes in git
[web.git] / research / upload.sh
index 3a528b5..6832be4 100755 (executable)
@@ -3,4 +3,11 @@ cd "$(dirname "$0")"
 
 jekyll build
 cd _site
-rsync ./ mpi-contact:public_html/ -aP
+
+git add .
+if ! git diff --cached; then
+    # There are changes
+    git commit -m "site upload"
+fi
+
+rsync ./ mpi-contact:public_html/ -aP --exclude .git