From 85721e9dedf9e2c566b15e8afeb7b4990c85c22a Mon Sep 17 00:00:00 2001 From: ruan-cat <1219043956@qq.com> Date: Wed, 21 Aug 2024 17:05:10 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix:=20eci:=E7=94=9F=E6=88=90ver?= =?UTF-8?q?cel=E9=9D=99=E6=80=81=E7=AB=99=E7=82=B9=E7=9B=AE=E5=BD=95?= =?UTF-8?q?=E7=BB=93=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/use-vercel-cli-build-try-4.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/use-vercel-cli-build-try-4.yaml b/.github/workflows/use-vercel-cli-build-try-4.yaml index b23316f..755ae72 100644 --- a/.github/workflows/use-vercel-cli-build-try-4.yaml +++ b/.github/workflows/use-vercel-cli-build-try-4.yaml @@ -71,7 +71,7 @@ jobs: - name: 检查vercel cli版本 run: vc -v - - name: 在连接vercel项目之前,预构建项目目录 + - name: eci:在连接vercel项目之前,预构建项目目录 run: pnpm run -w eci:b - name: 各子项目连接现有的vercel项目 @@ -96,11 +96,16 @@ jobs: vc build --yes --prod --cwd=${{env.p4}} -A ./vercel.null.json -t ${{env.vct}} vc build --yes --prod --cwd=${{env.p5}} -A ./vercel.null.json -t ${{env.vct}} vc build --yes --prod --cwd=${{env.docs01Star}} -A ./vercel.null.json -t ${{env.vct}} - vc build --yes --prod --cwd=${{env.eci}} -A ./vercel.null.json -t ${{env.vct}} + + # eci项目的目录不是固定的目录,是动态生成的目录,所以构建vercel目录的命令应该在其构建之后 + # vc build --yes --prod --cwd=${{env.eci}} -A ./vercel.null.json -t ${{env.vct}} - name: turbo并发打包全部子项目 run: pnpm run on-github-action-flow + - name: eci:生成vercel静态站点目录结构 + run: vc build --yes --prod --cwd=${{env.eci}} -A ./vercel.null.json -t ${{env.vct}} + - name: 各子项目上传文件并部署到vercel内 run: | url1="$(vc deploy --yes --prebuilt --prod --cwd=${{env.p1}} -t ${{env.vct}})"