This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user