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: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
# 不加 container直接用宿主机的 node v22
steps: steps:
- name: Checkout code - name: Checkout code
@@ -22,9 +21,12 @@ jobs:
- name: Build Hexo - name: Build Hexo
run: npm run build run: npm run build
- name: Deploy to HTML directory - name: Deploy to 1Panel website
run: | run: |
rm -rf /home/ubuntu/html/* SITE_DIR="/opt/1panel/apps/openresty/openresty/www/sites/blog.makefire.fun/index"
cp -r public/* /home/ubuntu/html/
rm -rf ${SITE_DIR}/*
cp -r public/* ${SITE_DIR}/
echo "✅ 构建完成!" echo "✅ 构建完成!"
ls -la /home/ubuntu/html/ ls -la ${SITE_DIR}