From 692b57f880a9849927fa121762b8bfe51a8a71d5 Mon Sep 17 00:00:00 2001 From: DrSmoothl <1787882683@qq.com> Date: Sun, 15 Feb 2026 16:30:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=8F=91=E5=B8=83=E5=B7=A5?= =?UTF-8?q?=E4=BD=9C=E6=B5=81=E4=BB=A5=E6=94=AF=E6=8C=81=20dev=20=E5=92=8C?= =?UTF-8?q?=20r-dev=20=E5=88=86=E6=94=AF=EF=BC=8C=E5=B9=B6=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E7=89=88=E6=9C=AC=E5=8F=B7=E7=94=9F=E6=88=90=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/publish-webui-dist.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-webui-dist.yml b/.github/workflows/publish-webui-dist.yml index 0df8ddc0..85297afb 100644 --- a/.github/workflows/publish-webui-dist.yml +++ b/.github/workflows/publish-webui-dist.yml @@ -4,6 +4,8 @@ on: push: branches: - main + - dev + - r-dev paths: - "dashboard/**" workflow_dispatch: @@ -33,7 +35,13 @@ jobs: run: | rm -rf .webui_dist_pkg mkdir -p .webui_dist_pkg/maibot_dashboard/dist - WEBUI_VERSION=$(python -c "import json; print(json.load(open('dashboard/package.json'))['version'])") + BASE_VERSION=$(python -c "import json; print(json.load(open('dashboard/package.json'))['version'])") + if [ "${GITHUB_REF_NAME}" = "main" ]; then + WEBUI_VERSION="${BASE_VERSION}" + else + TODAY=$(date -u +%Y%m%d) + WEBUI_VERSION="${BASE_VERSION}.dev${TODAY}.${GITHUB_RUN_NUMBER}" + fi cat > .webui_dist_pkg/pyproject.toml <<'EOF' [project] name = "maibot-dashboard"