The workflow for publishing the indsl
library consists of bumping the version (1) and building the documentation (2).
-
Bumping the version:
-
Delete any local branch called bump-version:
git branch -d bump-version
-
Run bump_library.sh
This script will create a new commit with the
changelog
and a newtag
following semantic versioning. If you want this to be a prerelease, set an environment variable INPUT_PRERELEASE toalpha
,beta
orrc
on the parameter -
Modify the CHANGELOG.md if needed and commit the changes for
CHANGELOG.md
,pyproject.toml
. (Make sure that indsl version is updated inpyproject.toml
) -
Push the branch to github
-
Push the new tag to github:
git push origin --tags
-
Create a PR and ask someone in the Cognite
Charts InDSL Review
to approve and merge. -
After merge, create a release in github, selecting the new tag. This will trigger the publish workflow. This workflow will build the package and publish it to the PyPI repository
-
-
Build and update the documentation
- Delete any local branch called build-docs:
git branch -d build-docs
- Run build-docs.sh. This will automatically create a new local branch called
build-docs
, commit the built documentation and push to github. - Create a PR and ask someone in the Cognite
Charts InDSL Review
to approve and merge. When merged to main, github pages will redeploy the documentation page.
- Delete any local branch called build-docs:
-
After the release is done, you can check the new version in the PyPI repository
-
For updating translations follow the instructions in TRANSLATIONS.md