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}