From b1fed78283d3a3cc79a96f2136a1be26c774e8ee Mon Sep 17 00:00:00 2001 From: Lotus CI Date: Mon, 29 Jun 2026 22:45:20 -0400 Subject: [PATCH] ci: stage embedded dist into embedded/web/dist before publish MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit build:embedded outputs to repo-root dist/; the publish job and smoke-check expected embedded/web/dist (the publish template's files entry), which was never created in CI — so a tagged publish would fail its smoke-check or ship an empty tarball. Copy dist -> embedded/web/dist in both jobs. Co-Authored-By: Claude Opus 4.8 --- .gitea/workflows/ci.yml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 95b64481..8e2dad3f 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -45,7 +45,14 @@ jobs: run: pnpm install --frozen-lockfile - name: Build embedded - run: pnpm run build:embedded + # build:embedded writes to the repo-root dist/ (vite default outDir). + # Stage it into embedded/web/dist — the publish template's "files" entry + # — so the smoke-check, artifact upload, and npm publish all see the + # bundle. (embedded/web/dist is gitignored, hence the explicit copy.) + run: | + pnpm run build:embedded + rm -rf embedded/web/dist + cp -r dist embedded/web/dist - name: Smoke-check output run: | @@ -89,7 +96,14 @@ jobs: run: pnpm install --frozen-lockfile - name: Build embedded - run: pnpm run build:embedded + # build:embedded writes to the repo-root dist/ (vite default outDir). + # Stage it into embedded/web/dist — the publish template's "files" entry + # — so the smoke-check, artifact upload, and npm publish all see the + # bundle. (embedded/web/dist is gitignored, hence the explicit copy.) + run: | + pnpm run build:embedded + rm -rf embedded/web/dist + cp -r dist embedded/web/dist - name: Set published version from tag working-directory: embedded/web