Skip to main content

deploy

Generate a commit message, commit all changes, run deploy_pip.ps1 to publish to PyPI, and tag HEAD with the deployed version on success

跳到安装

来源信息

仓库
vb2250158/ok-NIKKE
最近来源活动
2026年4月9日 14:19
检测到的 SKILL.md 语言
英语
星标
1
分支
0

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
deploy
description
Generate a commit message, commit all changes, run deploy_pip.ps1 to publish to PyPI, and tag HEAD with the deployed version on success
# Deploy to PyPI When instructed to deploy, release, or publish to PyPI, follow these steps **in order**: ## 1. Check for uncommitted changes and commit if necessary // turbo ```powershell git status --short ``` If there are uncommitted changes: 1. Run `git diff --stat` and `git diff` to review them. // turbo ```powershell git diff --stat ``` // turbo ```powershell git diff ``` 2. Write a concise, descriptive commit message summarizing **only these uncommitted changes**. 3. Stage and commit: // turbo ```powershell git add -A ``` // turbo ```powershell git commit -m "<generated commit message>" ``` If there are NO uncommitted changes, proceed directly to Step 2. ## 2. Run the deploy script using the virtual environment // turbo ```powershell .\.venv\Scripts\Activate.ps1; powershell -File ".\deploy_pip.ps1" ``` Wait for this to complete. **If the command fails (non-zero exit code or error output), STOP here and report the error to the user. Do NOT tag.** ## 3. Determine the deployed version The deploy script calls `setup.py`, which increments the version. The version is printed in the output from `setup.py` as: ``` latest_version is X.Y.Z new version is X.Y.W ``` Search for "new version is" in the terminal output to find the exact version number (e.g., `1.0.98`). ## 4. Tag HEAD with the deployed version // turbo ```powershell git tag v<version> ``` Replace `<version>` with the version obtained in step 3 (e.g. `1.0.97`). ## 5. Push commit and tag // turbo ```powershell git push ``` // turbo ```powershell git push --tags ``` ## 6. Report Tell the user: - The commit message used (if any) - The deployed version number - That the tag has been pushed
在 GitHub 查看