From 3757f5a6157cd1d11505ffc5ba2de8fb80f0bee8 Mon Sep 17 00:00:00 2001 From: chufan Date: Mon, 21 Sep 2026 17:16:40 +0800 Subject: [PATCH] =?UTF-8?q?chore(ci):=20=E5=AF=B9=E9=BD=90=20Docker=20?= =?UTF-8?q?=E4=B8=8E=20CD=20=E6=9E=84=E5=BB=BA=E4=BA=A7=E7=89=A9=E8=B7=AF?= =?UTF-8?q?=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 构建输出目录改为根目录 .vuepress/dist,与新版 VuePress 源目录配置一致。 --- .github/workflows/CD.yaml | 2 +- Dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/CD.yaml b/.github/workflows/CD.yaml index a254cf8..d2e5f76 100644 --- a/.github/workflows/CD.yaml +++ b/.github/workflows/CD.yaml @@ -65,7 +65,7 @@ jobs: - name: Upload artifact uses: actions/upload-pages-artifact@v3 with: - path: docs/.vuepress/dist + path: .vuepress/dist # 部署 - name: Deploy to GitHub Pages diff --git a/Dockerfile b/Dockerfile index b762547..8670ffe 100644 --- a/Dockerfile +++ b/Dockerfile @@ -45,5 +45,5 @@ LABEL "repo.name"=$APP_NAME "repo.version"=$APP_VERSION \ # Git信息 LABEL "git.hash"="$GIT_HASH" "git.message"="$GIT_MESSAGE" # 将dist文件中的内容复制到 /usr/share/nginx/html/ 这个目录下面 注意:--from参数 -COPY --from=build_base /apps/docs/.vuepress/dist/ /usr/share/nginx/html/ +COPY --from=build_base /apps/.vuepress/dist/ /usr/share/nginx/html/ COPY --from=build_base /apps/nginx.conf /etc/nginx/