From b330435a1ff43a356fa1350ee1f7261bba030cf5 Mon Sep 17 00:00:00 2001 From: Ming Di Leom <2809763-curben@users.noreply.gitlab.com> Date: Mon, 7 Apr 2025 08:30:25 +0000 Subject: [PATCH] build: clean up artifact prior to build somehow cache in netlify --- build.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build.sh b/build.sh index c70e0cf..0fe6ab6 100644 --- a/build.sh +++ b/build.sh @@ -13,11 +13,13 @@ hexo generate if [ "$NODE_ENV" = "production" ] && [ -d "public/" ]; then # deploy site assets + rm -rf "site/" git clone --depth 1 --branch site https://gitlab.com/curben/blog.git site cp -r site/* "public/" rm -f "public/README.md" # deploy microblog + rm -rf "microblog/" git clone --depth 1 --branch microblog https://gitlab.com/curben/blog.git microblog cd "microblog/" export PATH="$PATH:../node_modules/.bin"