mirror of
https://github.com/142vip/408CSFamily.git
synced 2026-10-29 03:16:57 +08:00
chore(ci): 对齐 Docker 与 CD 构建产物路径
构建输出目录改为根目录 .vuepress/dist,与新版 VuePress 源目录配置一致。
This commit is contained in:
2
.github/workflows/CD.yaml
vendored
2
.github/workflows/CD.yaml
vendored
@@ -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
|
||||
|
||||
@@ -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/
|
||||
|
||||
Reference in New Issue
Block a user