oliverdavies.uk/build.sh

23 lines
426 B
Bash
Raw Normal View History

2015-04-08 23:00:23 +00:00
#!/bin/bash
set -x
2015-04-08 23:40:48 +00:00
rm -rf ./output_prod
/usr/local/bin/sculpin generate --env=prod
2015-04-08 23:00:23 +00:00
LOG=$(git log --oneline -n 1)
2015-04-08 23:40:48 +00:00
rm -rf ./gh-pages-deployment/
git clone git@github.com:opdavies/opdavies.github.io.git ./gh-pages-deployment/
2015-04-08 23:00:23 +00:00
2015-04-08 23:40:48 +00:00
pushd ./gh-pages-deployment/
2015-04-08 23:00:23 +00:00
2015-04-09 00:57:44 +00:00
git checkout -B master
2015-04-08 23:00:23 +00:00
2015-04-08 23:40:48 +00:00
rsync --quiet --archive --filter="P .git*" --delete ../output_prod/ ./
2015-04-08 23:00:23 +00:00
git add -A .
git commit -m "${LOG}"
2015-04-08 23:40:48 +00:00
git push origin master --force
2015-04-08 23:00:23 +00:00
popd