summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhaturatu <taro@eyes4you.org>2024-11-10 00:48:55 +0900
committerhaturatu <taro@eyes4you.org>2024-11-10 00:48:55 +0900
commitb26a8d35895b92e33044a181554c3c9e2148a576 (patch)
treeef1d6ab4e0f6a8921050a597d4d96f085cbb9ce5
parentdf41a26539503e34534fa47762084863ba351b66 (diff)
add auto coment post
-rw-r--r--lumebuild.sh12
1 files changed, 7 insertions, 5 deletions
diff --git a/lumebuild.sh b/lumebuild.sh
index 3bc23f3..b6c58ce 100644
--- a/lumebuild.sh
+++ b/lumebuild.sh
@@ -21,6 +21,11 @@ git_commit() {
git commit -m "$COMMIT_COMMENT"
}
+build() {
+ cd $LUME_DIR || exit
+ deno task lume --dest=$BUILD_DIR > /dev/null 2>&1
+}
+
git_commit
if [ $? -eq 0 ]; then
@@ -30,7 +35,7 @@ if [ $? -eq 0 ]; then
grep "^comments:" "$(ls -tr | tail -1)"
if [ $? -eq 0 ]; then
- break
+ build
else
LAST_POST=`ls -tr | tail -1`
POST_URL=`echo "$BLOG_URL/$POST_URL_DIR/$LAST_POST" | sed "s/\.md//g"`
@@ -52,10 +57,7 @@ EOF`
git_commit
fi
- # deno task lume --dest=$BUILD_DIR
- cd $LUME_DIR || exit
- deno task lume --dest=$BUILD_DIR > /dev/null 2>&1
+ build
else
exit 1
fi
-