personal website: delete stale files
[web.git] / personal / upload.sh
1 #/bin/bash
2 cd "$(dirname "$0")"
3
4 jekyll build
5 cd _site
6
7 git add .
8 git diff --cached
9 git commit -m "site upload"
10
11 # To include `projects/rust-101/index.html` while excluding the rest of that folder, we have to
12 # write the exclusion as ".../*", or else rsync would not even descend into that directory.
13 rsync ./ www.ralfj.de:/srv/www.ralfj.de/docroot/ -aP --delete \
14     --include projects/rust-101/index.html \
15     --exclude .git --exclude cs --exclude upload --exclude "projects/rust-101/*"