We use python-semantic-release to generate a changelog and suggest the next
version. Ensure it is installed before following the steps below:
poetry install
Note: For the following instructions, we assume that the main Caluma
repository is the origin remote and main is set up to track that remote's
main branch. Please adapt the commands as necessary if your local setup
differs.
- Check out the latest
mainbranch and ensure you have all the tags:git checkout main git pull origin --tags - Determine the next version:
poetry run semantic-release version --noop - Generate the changelog entries:
poetry run semantic-release changelog --noop --unreleased - Update
CHANGELOG.mdandpyproject.tomlwith the information determined above. - Create a GitHub Pull Request with the changes.
- After the PR is merged, pull from the remote, tag the merge commit, and push
it back to GitHub:
git pull origin git tag vXX.X.X git push --tags - Create a new release on GitHub (Releases › Draft a new release), and
reuse the changelog text generated above for the release description.
- Note: If you want a review of the release notes, you may save the release as a draft, to be published later.
In case we need to support older versions of caluma for certain projects, we should add the previous major version to the container scanning action.
# .github/workflows/schedule
jobs:
scan:
strategy:
matrix:
# adding "caluma:12.2" as a previous version here
image: ["caluma", "caluma:12.2"]