test7
All checks were successful
Build Hexo Site / build (push) Successful in 55s

This commit is contained in:
魏风
2026-03-10 22:46:59 +08:00
parent e07e1589f8
commit 8ac3ec5e59

View File

@@ -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/
ls -la ${SITE_DIR}