add deploy script

This commit is contained in:
anna 2021-02-11 21:44:56 +01:00
parent 799a3a8a8d
commit 7c6bffb832
Signed by: fef
GPG key ID: EC22E476DC2D3D84

10
deploy.sh Executable file
View file

@ -0,0 +1,10 @@
#!/bin/sh
SRC_ROOTDIR="$HOME/src/fef.moe"
WEB_ROOTDIR="$HOME/pub/webroot"
cd "$SRC_ROOTDIR"
jekyll build
rm -rf "$WEB_ROOTDIR"
cp -r _site "$WEB_ROOTDIR"
gzip -9kr "$WEB_ROOTDIR"