-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Documentation: Add instructions about the release procedure
- Loading branch information
Showing
2 changed files
with
42 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Releasing | ||
|
||
|
||
## About | ||
|
||
When running the release procedure, several GitHub Action workflows will be | ||
triggered, building and publishing different kinds of artefacts. | ||
|
||
- Python source distribution and wheel packages, published to the Python Package Index (PyPI). | ||
|
||
https://pypi.org/project/cratedb-toolkit/ | ||
|
||
- OCI container images, published to the GitHub Container Registry (GHCR). | ||
|
||
https://github.com/crate-workbench/cratedb-toolkit/pkgs/container/cratedb-toolkit | ||
|
||
The signal to start the release pipeline is by tagging the Git repository, | ||
and pushing that tag to remote. | ||
|
||
|
||
## Procedure | ||
|
||
On branch `main`: | ||
|
||
- Add a section for the new version in the `CHANGES.md` file. | ||
- Commit your changes with a message like `Release x.y.z`. | ||
- Create a tag, and push to remote. | ||
This will trigger a GitHub action which releases the new version to PyPi. | ||
```shell | ||
git tag v0.0.14 | ||
git git push && push --tags | ||
``` | ||
- On GitHub, designate a new release, copying in the relevant section | ||
from the CHANGELOG. | ||
https://github.com/crate-workbench/cratedb-toolkit/releases | ||
|
||
Optionally, build the package and upload to PyPI manually. | ||
```shell | ||
poe release | ||
``` |