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