feat: cleanbuild site every time
This commit is contained in:
parent
12bf25d298
commit
6a2d463027
1 changed files with 5 additions and 5 deletions
10
upload.sh
10
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
|
||||
|
|
Loading…
Reference in a new issue