X-Git-Url: https://git.ralfj.de/web.git/blobdiff_plain/4ac4aea115cb3407a321dd8d3ba6c1a2e17ebde2..4ea4824e308ef60db50d58359ae05aafcf7de6f6:/ralf/upload.sh diff --git a/ralf/upload.sh b/ralf/upload.sh index 6733051..2d9205e 100755 --- a/ralf/upload.sh +++ b/ralf/upload.sh @@ -3,4 +3,11 @@ cd "$(dirname "$0")" jekyll build cd _site -rsync ./ www.ralfj.de:/srv/www.ralfj.de/docroot/ -aP + +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