|
| 1 | +# Publishing AI4Math-MathTool |
| 2 | + |
| 3 | +This document describes the one-time publication of the tested local release |
| 4 | +candidate. Creating the public repository, pushing, tagging, and releasing are |
| 5 | +separate external write actions. |
| 6 | + |
| 7 | +## 1. Validate the candidate |
| 8 | + |
| 9 | +From the repository root: |
| 10 | + |
| 11 | +```bash |
| 12 | +python3 -m venv .venv |
| 13 | +. .venv/bin/activate |
| 14 | +python -m pip install --upgrade pip |
| 15 | +python -m pip install \ |
| 16 | + -r skills/math-glossary/requirements.txt \ |
| 17 | + -r skills/math-glossary/requirements-ai.txt |
| 18 | +python -m unittest discover -s tests -v |
| 19 | +python -m unittest discover -s skills/math-glossary/tests -v |
| 20 | +git status --short |
| 21 | +``` |
| 22 | + |
| 23 | +Only publish a tested commit with no unintended tracked changes. The private |
| 24 | +`.intake/` archive must remain ignored and must never be pushed. |
| 25 | + |
| 26 | +## 2. Create the public GitHub repository |
| 27 | + |
| 28 | +Authenticate an account that may create repositories in the `VeryMath` |
| 29 | +organization, then create an empty public repository without generated files: |
| 30 | + |
| 31 | +```bash |
| 32 | +gh auth status |
| 33 | +gh repo create VeryMath/AI4Math-MathTool \ |
| 34 | + --public \ |
| 35 | + --source=. \ |
| 36 | + --remote=origin |
| 37 | +``` |
| 38 | + |
| 39 | +Publish the tested commit as the initial `main` branch: |
| 40 | + |
| 41 | +```bash |
| 42 | +git switch -c main |
| 43 | +git push -u origin main |
| 44 | +``` |
| 45 | + |
| 46 | +The included GitHub Actions workflow will run the repository and package test |
| 47 | +suites on supported Python versions. |
| 48 | + |
| 49 | +## 3. Verify and release |
| 50 | + |
| 51 | +Wait for CI to pass, inspect the public file list, and confirm that `.intake/`, |
| 52 | +credentials, runtime glossaries, and generated workbooks are absent. Then: |
| 53 | + |
| 54 | +```bash |
| 55 | +gh run list --limit 5 |
| 56 | +git tag -a v0.1.0 -m "AI4Math-MathTool v0.1.0" |
| 57 | +git push origin v0.1.0 |
| 58 | +gh release create v0.1.0 \ |
| 59 | + --title "AI4Math-MathTool v0.1.0" \ |
| 60 | + --generate-notes |
| 61 | +``` |
| 62 | + |
| 63 | +## 4. Connect the ecosystem |
| 64 | + |
| 65 | +After the remote URL and passing CI run exist: |
| 66 | + |
| 67 | +1. add the repository to the AI4Math Skill Library catalog; |
| 68 | +2. add the `math-glossary` entry to VeryMath with the GitHub and documentation |
| 69 | + links; |
| 70 | +3. keep the original course ZIP only in the private teacher-controlled intake |
| 71 | + archive. |
| 72 | + |
| 73 | +## 中文说明 |
| 74 | + |
| 75 | +发布分成四个可核验动作:先在干净环境跑完测试,再创建空的公开仓库,将当前已测试 |
| 76 | +提交作为 `main` 推送,CI 通过后再创建 `v0.1.0` Release。最后才同步 |
| 77 | +AI4Math-Skill-Library 与 VeryMath 页面。任何一步都不得上传 `.intake/`、密钥、真实 |
| 78 | +术语库或课程原始材料。 |
0 commit comments