feat: 优化分支发布策略 - 分离test和develop职责

主要变更:
- alpha.yml: 修改触发分支从develop改为test分支
- snapshot.yml: 强化develop专用职责,优化描述信息
- 创建test分支: 专门用于alpha版本发布

分支策略优化:
- develop → @snapshot (开发快照,高频更新)
- test → @alpha (精选功能测试版本)
- staging → @beta (稳定预览版本)
- main → @latest (正式发布版本)

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
sean
2025-07-05 06:32:21 +08:00
parent 71ce235904
commit 52acbb89eb
2 changed files with 8 additions and 7 deletions

View File

@ -3,7 +3,7 @@ name: Alpha Release
on:
push:
branches:
- develop
- test
workflow_dispatch:
concurrency: ${{ github.workflow }}-${{ github.ref }}
@ -39,7 +39,7 @@ jobs:
- name: Release alpha version
run: |
# 确保在正确的分支
git checkout develop
git checkout test
# 获取当前时间戳和短commit hash
TIMESTAMP=$(date +%Y%m%d%H%M%S)
@ -81,7 +81,7 @@ jobs:
owner: context.repo.owner,
repo: context.repo.repo,
state: 'open',
base: 'develop'
base: 'test'
});
const comment = `🚀 **Alpha版本已发布!**
@ -97,9 +97,9 @@ jobs:
npx dpml-prompt@${version} action <roleId>
\`\`\`
💡 你可以使用这个alpha版本测试最新的develop分支功能。
💡 你可以使用这个alpha版本测试最新的test分支功能。
⚠️ **迁移提示**: 推荐使用 \`@alpha\` 替代 \`@snapshot\` 进行开发测试。`;
🧪 **Alpha定位**: 精选功能测试版本,适合功能验证和用户测试。`;
// 为每个相关PR添加评论
for (const pr of prs) {