fix: update build process to use Vite and correct output directory

This commit is contained in:
Junyan Qin
2026-04-03 11:44:34 +08:00
parent 7cfa83aac6
commit 8e046f4bbb
2 changed files with 4 additions and 4 deletions
@@ -43,10 +43,10 @@ jobs:
run: | run: |
cd /tmp/langbot_build_web/web cd /tmp/langbot_build_web/web
npm install npm install
npm run build npx vite build
- name: Package Output - name: Package Output
run: | run: |
cp -r /tmp/langbot_build_web/web/out ./web cp -r /tmp/langbot_build_web/web/dist ./web
- name: Upload Artifact - name: Upload Artifact
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
+2 -2
View File
@@ -29,8 +29,8 @@ jobs:
npm install -g pnpm npm install -g pnpm
pnpm install pnpm install
pnpm build pnpm build
mkdir -p ../src/langbot/web/out mkdir -p ../src/langbot/web/dist
cp -r out ../src/langbot/web/ cp -r dist ../src/langbot/web/
- name: Install the latest version of uv - name: Install the latest version of uv
uses: astral-sh/setup-uv@v6 uses: astral-sh/setup-uv@v6