From ae0dac84f860c981e357a8c386d1ea1f09d758af Mon Sep 17 00:00:00 2001 From: haturatu Date: Fri, 11 Oct 2024 01:40:49 +0900 Subject: wip --- lumebuild.sh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 lumebuild.sh (limited to 'lumebuild.sh') diff --git a/lumebuild.sh b/lumebuild.sh new file mode 100644 index 0000000..3f794d4 --- /dev/null +++ b/lumebuild.sh @@ -0,0 +1,24 @@ +#!/bin/bash + +LUME_DIR="/var/www/html/soulmining" +SRC_DIR="$LUME_DIR/src" +BUILD_DIR="site" +WEBPSH="/your/webp/convert/path" + +export DENO_INSTALL="/home/$USER/.deno" +export PATH="$DENO_INSTALL/bin:$PATH" + +cd "$SRC_DIR" || exit + +git add . || git init && git add . || exit + +git commit -m "`date`" + +if [ $? -eq 0 ]; then + $WEBPSH + cd $LUME_DIR || exit + deno task lume --dest=$BUILD_DIR > /dev/null 2>&1 +else + exit 1 +fi + -- cgit v1.2.3