From 64e7adcf2348b6f8e55624405d8df58ed24569cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=93=B8=E6=B8=8A=20ICE-GL-ZY001?= <565183519@qq.com> Date: Sun, 5 Jul 2026 15:34:27 +0800 Subject: [PATCH] =?UTF-8?q?=E9=93=B8=E6=B8=8A=20ICE-GL-ZY001=20=C2=B7=20?= =?UTF-8?q?=E5=9B=A2=E9=98=9F=E6=9C=AC=E4=BD=93:=20=E5=9B=BD=E4=BD=9C?= =?UTF-8?q?=E7=99=BB=E5=AD=97-2026-A-00037559=20=C2=B7=20=E4=B8=BB?= =?UTF-8?q?=E6=9D=83=E8=80=85:=20ICE-GL=E2=88=9E=E5=86=B0=E6=9C=94=20?= =?UTF-8?q?=C2=B7=20D1650017=20=C2=B7=20CI=20=E5=A2=9E=E5=8A=A0=E4=B8=BB?= =?UTF-8?q?=E9=A1=B5=E5=90=8C=E6=AD=A5=20step=20=C2=B7=20=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E5=90=8C=E6=AD=A5=20homepage/main/index.html=20?= =?UTF-8?q?=E2=86=92=20/var/www/guanghulab/index.html=20=C2=B7=20=E8=AE=A9?= =?UTF-8?q?=E4=BB=93=E5=BA=93=E6=BA=90=E4=B8=8E=20nginx=20=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1=E4=B8=80=E8=87=B4=20=C2=B7=20=E4=B8=8B=E6=AC=A1?= =?UTF-8?q?=E6=8E=A8=E9=80=81=E4=B8=BB=E9=A1=B5=E6=94=B9=E5=8A=A8=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E7=94=9F=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .forgejo/workflows/ci-and-deploy.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.forgejo/workflows/ci-and-deploy.yaml b/.forgejo/workflows/ci-and-deploy.yaml index b0a1ebd..f5ba320 100644 --- a/.forgejo/workflows/ci-and-deploy.yaml +++ b/.forgejo/workflows/ci-and-deploy.yaml @@ -116,6 +116,22 @@ jobs: fi echo "═══ 重启完成 ═══" + - name: 同步主页 HTML 到 nginx 服务路径 + run: | + echo "═══ 同步主页 HTML ═══" + SRC="/data/guanghulab/repo/homepage/main/index.html" + DST="/var/www/guanghulab/index.html" + + if [ ! -f "$SRC" ]; then + echo "⚠️ 主页源文件不存在: $SRC" + else + mkdir -p "$(dirname "$DST")" + cp "$SRC" "$DST" + chmod 644 "$DST" + echo "✅ 主页 HTML 已同步: $SRC → $DST" + echo " $(wc -c < $DST) bytes" + fi + - name: 部署验证 run: | sleep 3