| 1 |
# How to release |
| 2 |
|
| 3 |
- Update `CHANGELOG.md` |
| 4 |
- Bump version (YYYY.MM) in `python_docs_theme/__init__.py` |
| 5 |
- Commit |
| 6 |
- Push to check tests pass on |
| 7 |
[GitHub Actions](https://github.com/python/python-docs-theme/actions) |
| 8 |
- Go to https://github.com/python/python-docs-theme/releases |
| 9 |
- Click "Draft a new release" |
| 10 |
- Click "Tag: Select tag" |
| 11 |
- Type the next YYYY.MM version (no leading zero) and |
| 12 |
select "Create new tag" |
| 13 |
- Click "Create" for "YYYY.MM will be created on publish" |
| 14 |
- Leave the "Release title" blank (it will be autofilled) |
| 15 |
- Click "Generate release notes" and amend as required |
| 16 |
- Click "Publish release" |
| 17 |
- Check the tagged [GitHub Actions build](https://github.com/python/python-docs-theme/actions/workflows/pypi-package.yml) |
| 18 |
has deployed to [PyPI](https://pypi.org/project/python-docs-theme/#history) |
| 19 |
|
| 20 |
# Makefile usage |
| 21 |
|
| 22 |
This project includes a simple Makefile for syncing changes to the theme with |
| 23 |
the main CPython repository. Run `make help` for details on available rules. |
| 24 |
|
| 25 |
There is one configurable variable, `CPYTHON_PATH`, which should be the path |
| 26 |
to the CPython repository on your machine. By default, it points to |
| 27 |
`../cpython`. |