mirror of
https://github.com/chaitin/MonkeyCode.git
synced 2026-12-01 09:07:27 +08:00
fix(ci): 统一 artifact 路径结构,确保 docker 构建能找到 dist
- build: 先复制 frontend/dist 到 _build/dist 再上传 - docker: 下载后从 _build/dist 复制到 frontend/docker/ Made-with: Cursor
This commit is contained in:
1 parent
86d7f4723c
commit
3253d281b2
1 file changed
+7
-2
@@ -47,10 +47,13 @@ jobs:
|
||||
run: pnpm run build
|
||||
|
||||
- name: Upload dist
|
||||
run: |
|
||||
mkdir -p _build/dist && cp -r frontend/dist/* _build/dist/
|
||||
- name: Upload dist artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: dist
|
||||
path: frontend/dist/
|
||||
path: _build/dist/
|
||||
|
||||
docker:
|
||||
needs: build
|
||||
@@ -63,7 +66,9 @@ jobs:
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: dist
|
||||
path: frontend/docker/
|
||||
|
||||
- name: Prepare docker context
|
||||
run: cp -r _build/dist frontend/docker/
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
Reference in new issue
Block a user