Releasing¶
One tag publishes everything: a GitHub release with notes from CHANGELOG.md, the Python package on PyPI (with the
dashboard built in), a multi-architecture Docker image on GitHub Container Registry, and optionally the TypeScript
SDK on npm.
One-time setup¶
- PyPI trusted publishing (no token stored anywhere): sign in at pypi.org, open
Your account → Publishing → Add a new pending publisher, and enter:
project
ragops-observatory, ownerArathiS1, repositoryragops-observatory, workflowrelease.yml, environmentpypi. - GitHub environment: Settings → Environments → New environment named
pypi(optionally require your approval before publishing). - Docs website: Settings → Pages → Source: GitHub Actions. The
Docs websiteworkflow publishes https://arathis1.github.io/ragops-observatory/ on every push tomainthat changesdocs/. - npm (optional): create the
@ragopsorganisation on npmjs.com, add an automation token as the secretNPM_TOKEN, and set the repository variablePUBLISH_NPMtotrue.
Every release¶
- Update the version in
pyproject.toml,ragops/__init__.py,web/package.json,sdk-ts/package.jsonandCITATION.cff. - Add a
## <version>section at the top ofCHANGELOG.md. - Check locally:
ruff check ragops tests examples && pytest -q && (cd web && npm run build) && mkdocs build --strict. - Commit, then tag and push:
git commit -am "Release v0.10.0"
git tag v0.10.0
git push && git push --tags
The workflow refuses to publish if the tag does not match the package version, or if the wheel does not contain the dashboard.