summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhaturatu <taro@eyes4you.org>2024-10-11 01:40:49 +0900
committerhaturatu <taro@eyes4you.org>2024-10-11 01:40:49 +0900
commitae0dac84f860c981e357a8c386d1ea1f09d758af (patch)
treed776d8ca91c0994ad614fdc133b79b24eb83c3ea
wip
-rw-r--r--README.md1
-rw-r--r--lumebuild.sh24
2 files changed, 25 insertions, 0 deletions
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..29d93ed
--- /dev/null
+++ b/README.md
@@ -0,0 +1 @@
+# lumebuild
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
+