diff --git a/.github/workflows/deploy-pages.yml b/.github/workflows/deploy-pages.yml index 1c46c414..25703f72 100644 --- a/.github/workflows/deploy-pages.yml +++ b/.github/workflows/deploy-pages.yml @@ -6,6 +6,7 @@ on: - main # 仅 main 分支触发生产部署 paths: - 'docs/**' + - 'persona-studio/frontend/**' - '.github/brain/**' workflow_dispatch: @@ -31,6 +32,11 @@ jobs: - name: Setup Pages uses: actions/configure-pages@v5 + - name: Sync Persona Studio frontend to docs + run: | + mkdir -p docs/persona-studio + cp -r persona-studio/frontend/* docs/persona-studio/ + - name: Upload Pages artifact uses: actions/upload-pages-artifact@v3 with: diff --git a/README.md b/README.md index 526d05b0..b916051a 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@
-### 🚀 [点击进入 Persona Studio →](https://guanghulab.com/persona-studio/) +### 🚀 [点击进入 Persona Studio →](https://qinfendebingshuo.github.io/guanghulab/persona-studio/) 💬 自然语言对话  ·  🧠 智能代码生成  ·  📧 邮件推送结果  ·  🔄 对话记忆 @@ -59,7 +59,7 @@ | **铸渊 Zhùyuān** | 代码守护者 | 代码审查、CI 巡检、模块协议执行、Issue 回复 | | **冰朔 Bīng Shuò** | 系统创建者 | 系统架构设计、核心决策、广播发布 | | **霜砚 Shuāng Yàn** | 人格导师 | 人格调校、风格管理、联觉语言系统 | -| **知秋 Zhī Qiū** | 协助开发者 | 对话协助、代码生成、开发体验([Persona Studio](https://guanghulab.com/persona-studio/)) | +| **知秋 Zhī Qiū** | 协助开发者 | 对话协助、代码生成、开发体验([Persona Studio](https://qinfendebingshuo.github.io/guanghulab/persona-studio/)) | --- @@ -213,7 +213,7 @@ ### 体验模块 | 模块 | 说明 | |------|------| -| `persona-studio/` | 人格体协助开发体验([进入 →](https://guanghulab.com/persona-studio/)) | +| `persona-studio/` | 人格体协助开发体验([进入 →](https://qinfendebingshuo.github.io/guanghulab/persona-studio/)) | ### 系统支撑 | 模块 | 说明 | diff --git a/persona-studio/README.md b/persona-studio/README.md index 92e93fd9..14c6a2ae 100644 --- a/persona-studio/README.md +++ b/persona-studio/README.md @@ -15,7 +15,7 @@ ## 👉 点击进入体验

- + Launch

diff --git a/persona-studio/frontend/chat.js b/persona-studio/frontend/chat.js index c108ecad..4fcf88ef 100644 --- a/persona-studio/frontend/chat.js +++ b/persona-studio/frontend/chat.js @@ -9,7 +9,7 @@ const API_BASE = (function () { if (location.hostname === 'localhost' || location.hostname === '127.0.0.1') { return 'http://localhost:3002'; } - return ''; + return 'https://guanghulab.com'; })(); /* ---- Init ---- */ diff --git a/persona-studio/frontend/index.html b/persona-studio/frontend/index.html index fe62ee64..89ef72c0 100644 --- a/persona-studio/frontend/index.html +++ b/persona-studio/frontend/index.html @@ -52,7 +52,7 @@ if (location.hostname === 'localhost' || location.hostname === '127.0.0.1') { return 'http://localhost:3002'; } - return ''; + return 'https://guanghulab.com'; } async function handleLogin(e) {