From 8ac3ec5e594660fcd36e0f365da26b7934c7bcbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AD=8F=E9=A3=8E?= Date: Tue, 10 Mar 2026 22:46:59 +0800 Subject: [PATCH] test7 --- .gitea/workflows/build.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 6588898..2dc456f 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -8,7 +8,6 @@ on: jobs: build: runs-on: ubuntu-latest - # 不加 container,直接用宿主机的 node v22 steps: - name: Checkout code @@ -22,9 +21,12 @@ jobs: - name: Build Hexo run: npm run build - - name: Deploy to HTML directory + - name: Deploy to 1Panel website run: | - rm -rf /home/ubuntu/html/* - cp -r public/* /home/ubuntu/html/ + SITE_DIR="/opt/1panel/apps/openresty/openresty/www/sites/blog.makefire.fun/index" + + rm -rf ${SITE_DIR}/* + cp -r public/* ${SITE_DIR}/ + echo "✅ 构建完成!" - ls -la /home/ubuntu/html/ \ No newline at end of file + ls -la ${SITE_DIR}