From 6a2d4630276f79c2659882529c3409a055b0a128 Mon Sep 17 00:00:00 2001 From: taco Date: Mon, 8 Jul 2024 09:27:19 -0400 Subject: [PATCH] feat: cleanbuild site every time --- upload.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/upload.sh b/upload.sh index 31e1f7b..7594e3c 100755 --- a/upload.sh +++ b/upload.sh @@ -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