fix(webui): disable update checks and deploy local dashboard assets

This commit is contained in:
LoveLosita
2026-05-12 12:04:07 +08:00
parent 587aa0a531
commit 8d387d0ca1
9 changed files with 1548 additions and 1 deletions

View File

@@ -51,6 +51,17 @@ jobs:
app_tag="$(git -C "$worktree" rev-parse --short=12 HEAD)"
printf 'APP_TAG=%s\n' "$app_tag" >> "$GITHUB_ENV"
- name: Build dashboard assets
shell: bash
run: |
set -euo pipefail
cd "$MAIBOT_WORKTREE/dashboard"
npm ci
npm run build
test -f dist/index.html
- name: Stage release directory
shell: bash
run: |
@@ -69,6 +80,8 @@ jobs:
rm -rf "$release_dir"
mkdir -p "$release_dir"
git -C "$MAIBOT_WORKTREE" archive HEAD | tar -x -C "$release_dir"
mkdir -p "$release_dir/dashboard"
cp -a "$MAIBOT_WORKTREE/dashboard/dist" "$release_dir/dashboard/dist"
printf 'RELEASE_DIR=%s\n' "$release_dir" >> "$GITHUB_ENV"