Releasing¶
For maintainers. Releases go to PyPI as
nomem-ai through GitHub Actions with
PyPI trusted publishing, so no API token is stored anywhere.
One-time setup¶
- Sign in to pypi.org (create an account and turn on two-factor authentication if needed).
- Go to Your account, Publishing
and add a pending publisher:
- PyPI project name:
nomem-ai - Owner:
saswattulo - Repository:
NoMem - Workflow:
publish.yml - Environment:
pypi
- PyPI project name:
- In the GitHub repository, open Settings, Environments, and create an
environment named
pypi(optionally require your approval for it).
Each release¶
- Bump
versioninpyproject.tomland__version__innomem/__init__.py, and add a section toCHANGELOG.md. -
Check locally:
-
Merge to
main, then create a GitHub release with a tag such asv0.3.0. Thepublish to PyPIworkflow builds the sdist and wheel and uploads them. - Check
pip install nomem-ai==0.3.0in a fresh environment.
To try the upload first, add a pending publisher on
test.pypi.org the same way and point a copy of the
workflow at it with repository-url: https://test.pypi.org/legacy/.
Manual upload (fallback)¶
Docs site¶
The site is built from docs/ with MkDocs Material and deployed by the
docs workflow on every push to main. One-time setup: in the repository's
Settings, Pages, set Source to GitHub Actions. Preview locally with: