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/