deploy-public
Private-to-public repo sync. One script for all repos. Copies code, creates a PR on the public repo, merges it, and syncs GitHub releases.
When to Use This Skill
Use deploy-public for:
- - Publishing a private repo's code to its public counterpart
- After running
wip-release on the private repo (release must exist first) - Syncing release notes from private to public
CRITICAL: Release order matters.
- 1. Merge PR to private repo's main
- Run
wip-release (creates GitHub release with notes on private repo) - THEN run
deploy-public.sh (pulls notes from private release)
If you skip step 2, the public release gets empty notes.
Do NOT Use For
- - Repos without a
-private counterpart - First-time repo setup (create the public repo on GitHub first)
API Reference
CLI
CODEBLOCK0
Examples
CODEBLOCK1
What It Does
- 1. Clones the public repo to a temp directory
- Copies all files from private repo (excluding
ai/, .git/) - Creates a branch, commits, pushes, creates PR
- Merges the PR (regular merge, never squash)
- Syncs GitHub releases (pulls notes from private repo's releases)
deploy-public
私有仓库到公开仓库的同步。一个脚本适用于所有仓库。复制代码,在公开仓库上创建PR,合并PR,并同步GitHub发布。
何时使用此技能
在以下场景使用deploy-public:
- - 将私有仓库的代码发布到其对应的公开仓库
- 在私有仓库上运行wip-release之后(必须先存在发布版本)
- 将发布说明从私有仓库同步到公开仓库
关键:发布顺序很重要。
- 1. 将PR合并到私有仓库的主分支
- 运行wip-release(在私有仓库上创建包含说明的GitHub发布)
- 然后运行deploy-public.sh(从私有发布中提取说明)
如果跳过第2步,公开发布将获得空说明。
请勿用于
- - 没有-private对应仓库的仓库
- 首次仓库设置(先在GitHub上创建公开仓库)
API参考
CLI
bash
bash scripts/deploy-public.sh /path/to/private-repo org/public-repo
示例
bash
部署memory-crystal
bash scripts/deploy-public.sh /path/to/memory-crystal-private wipcomputer/memory-crystal
部署wip-dev-tools
bash scripts/deploy-public.sh /path/to/wip-ai-devops-toolbox-private wipcomputer/wip-ai-devops-toolbox
功能说明
- 1. 将公开仓库克隆到临时目录
- 从私有仓库复制所有文件(排除ai/、.git/)
- 创建分支、提交、推送、创建PR
- 合并PR(常规合并,从不压缩)
- 同步GitHub发布(从私有仓库的发布中提取说明)