From 604d72063985160cc36a56bec889d67f8b5b6622 Mon Sep 17 00:00:00 2001 From: GeWuYou <95328647+GeWuYou@users.noreply.github.com> Date: Wed, 11 Feb 2026 13:31:14 +0800 Subject: [PATCH] =?UTF-8?q?fix(workflow):=20=E4=BF=AE=E5=A4=8D=E6=96=87?= =?UTF-8?q?=E6=A1=A3=E5=8F=91=E5=B8=83=E5=B7=A5=E4=BD=9C=E6=B5=81=E6=9D=A1?= =?UTF-8?q?=E4=BB=B6=E5=B9=B6=E6=8C=87=E5=AE=9ABun=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修复了触发文档发布的条件逻辑 - 指定Bun.js版本为2.1.x以确保兼容性 - 移除了不必要的分支检查条件 --- .github/workflows/publish-docs.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml index 39b2eb2..b53ba32 100644 --- a/.github/workflows/publish-docs.yml +++ b/.github/workflows/publish-docs.yml @@ -19,7 +19,7 @@ jobs: build-and-deploy: if: | (startsWith(github.ref, 'refs/tags/v') && !contains(github.ref, '-')) - || (github.ref == 'refs/heads/main' && contains(github.event.head_commit.message, '[release doc]')) + || contains(github.event.head_commit.message, '[release doc]')) runs-on: ubuntu-latest environment: @@ -34,7 +34,7 @@ jobs: # 2️⃣ 安装 Bun.js - uses: oven-sh/setup-bun@v2 with: - bun-version: latest + bun-version: 2.1.x # 3️⃣ 安装依赖 - name: Install Dependencies run: |