mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-03-23 19:24:29 +08:00
fix(workflow): 修复文档发布工作流条件并指定Bun版本
- 修复了触发文档发布的条件逻辑 - 指定Bun.js版本为2.1.x以确保兼容性 - 移除了不必要的分支检查条件
This commit is contained in:
parent
d147bc01fe
commit
604d720639
4
.github/workflows/publish-docs.yml
vendored
4
.github/workflows/publish-docs.yml
vendored
@ -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: |
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user