commit a09d36e604854f6512d556e67f08afa65f4ab7ea
parent 0277cf29e530647470583e622863f01828c5731b
Author: Oscar Benedito <oscar@oscarbenedito.com>
Date:   Thu, 16 Jul 2020 15:56:40 +0200

Website deployment now works even with history rewrite

Diffstat:
Mwebsite-deployment/deploy-website.sh | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/website-deployment/deploy-website.sh b/website-deployment/deploy-website.sh @@ -22,7 +22,8 @@ HUGO_PATH="/srv/oscarbenedito.com" GOTIFY_DOMAIN="gotify.oscarbenedito.com" FILE_DIR="$(dirname "$(realpath "$0")")" -git -C $HUGO_PATH pull +git -C $HUGO_PATH fetch origin master +git -C $HUGO_PATH reset --hard origin/master rm -rf $HUGO_PATH/public rm -rf $HUGO_PATH/resources hugo -s $HUGO_PATH --gc