feat: cleanbuild site every time

This commit is contained in:
Daniel Alejandro Gallegos 2024-07-08 09:27:19 -04:00
parent 12bf25d298
commit 6a2d463027
Signed by: taco
SSH key fingerprint: SHA256:YgoAbZ3x1d1kTGKEmT8elbjEvK/mn0hc4ATFgWhykR0

View file

@ -13,11 +13,11 @@ export NEOCITIES_API_KEY
# build site
if [ "$ENGINE" = "hugo" ]; then
hugo -s "$1"
hugo -s "$1" -d "../$SITE_DIR"
fi
# push index last to ensure resources are available
neocities push -e index.html "$1/$SITE_DIR"
neocities upload "$1/$SITE_DIR/index.html"
neocities push -e index.html "$SITE_DIR"
neocities upload "$SITE_DIR/index.html"
rm -fr $SITE_DIR