Remove obsolete deploy.sh
This commit is contained in:
parent
116c69b09e
commit
a7c02086f9
24
deploy.sh
24
deploy.sh
|
@ -1,24 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
source=public/
|
|
||||||
target=ariejan@mail.devroom.io:/home/ariejan/www/ariejan.net
|
|
||||||
|
|
||||||
git symbolic-ref HEAD | grep -q "refs/heads/master"
|
|
||||||
if [ $? != 0 ] ; then
|
|
||||||
echo "You are not on the 'master' branch. Not deploying."
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -d ./public ] ; then
|
|
||||||
echo "-- Pruning current static files from ./${source}"
|
|
||||||
rm -rf ./${source}
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "-- Generating website to ./${source}"
|
|
||||||
hugo
|
|
||||||
|
|
||||||
echo "-- Compressing CSS"
|
|
||||||
yuicompressor themes/outerspace/static/css/outerspace.css -o themes/outerspace/static/css/outerspace-min.css
|
|
||||||
|
|
||||||
echo "-- Uploading using rsync to ${target}"
|
|
||||||
rsync -aqz --delete-after --no-progress ${source} -e ssh ${target}
|
|
Loading…
Reference in New Issue
Block a user