Release Process
This document describes the steps to publish a new release of Logreach.
Keeping dependencies up to date
Dependency updates via Dependabot do not require a full release. If only Dependabot PRs are pending and no feature work needs to go out, merge them into main and then merge main back into development to keep both branches in sync.
To merge main into development using the GitHub UI:
- Go to the repository on GitHub and click Pull requests, then New pull request.
- Set the base branch to
developmentand the compare branch tomain. - Click Create pull request, add a short title (e.g.
Merge main into development), and submit. - Once CI passes, merge the PR.
Prerequisites
Before starting a release, make sure all work intended for this version has been merged into the development branch and that CI is passing.
Steps
1. Merge Dependabot PRs into main
Review any open Dependabot pull requests and merge the relevant ones into main before continuing.
2. Merge development into main
Open a pull request to merge the development branch into main. Once CI passes and the PR is approved, merge it.
Note
Merging development into main deletes the development branch. The
recreate-development-branch.yml workflow recreates it from main right away. Check the
Actions tab that it ran. If it failed, recreate it by hand:
git checkout main
git pull
git checkout -b development
git push -u origin development
or create development from main in the GitHub UI.
3. Determine the new version number
Logreach follows Semantic Versioning (MAJOR.MINOR.PATCH):
- Patch (
0.3.x): bug fixes, updates/correction to documentation and dependabot updates. - Minor (
0.x.0): new features with backwards-compatible functionality. No breaking changes. Reset the patch number to0. - Major (
x.0.0): breaking changes. Reset both minor and patch numbers to0.
4. Bump the version number
Create a new branch from main and update the version string in src/logreach/metadata.py:
__date__ = 'YYYY/MM/DD' # set to the release date
__version__ = '0.X.Y' # set to the new release version
The version here must match the tag you will create in step 5 (e.g. version 0.4.0 corresponds to tag v0.4.0).
Also make sure uv.lock is up to date:
uv lock
Commit any changes, push the branch, and open a pull request against main. Once CI passes, merge it.
5. Create a GitHub release
Go to the Releases page and click Draft a new release.
- Set the tag to
vX.Y.Z(e.g.v0.4.0), targeting themainbranch. GitHub will create the tag on publish. - Set the release title to the version string (e.g.
v0.4.0). - Click Generate release notes to populate the changelog automatically.
- Review the generated release notes and adjust if needed.
- Click Publish release.
6. Check automatically triggered workflows
Publishing the release triggers the following GitHub Actions workflows automatically:
- Publish Docs (
publish-docs.yml): deploys a new versioned copy of the documentation and updates thelatestalias. - Upload Python Package (
python-publish.yml): checks the tag matches the package version and publishes it to PyPI. A version can be uploaded only once: a mistake needs a new version.
Logreach is not published as a Docker image.
Monitor the Actions tab to confirm all workflows complete successfully.
Note
The workflow uses PyPI trusted publishing, so no API token is stored in GitHub
7. Merge main back into development
development was recreated in step 2, before the version bump landed on main. Merge main
back into development so it has the new version and uv.lock, following the steps in
Keeping dependencies up to date.
The development branch is now ready for the next iteration of work.