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