track HTML changes in git
[web.git] / personal / upload.sh
index 88e6126cd52950b0a36485b0bf3f2fa5721393e4..2d9205e38214e03dec7fcaba986554b108380249 100755 (executable)
@@ -3,6 +3,11 @@ cd "$(dirname "$0")"
 
 jekyll build
 cd _site
-rsync ./ ralfj.de:srv/www.ralfj.de/docroot/ -aP \
-  --exclude=cs/research.html
-scp cs/research.html mpi-contact:public_html/index.html
+
+git add .
+if ! git diff --cached; then
+    # There are changes
+    git commit -m "site upload"
+fi
+
+rsync ./ www.ralfj.de:/srv/www.ralfj.de/docroot/ -aP --exclude .git