Skip to content

Commit

Permalink
Documentation: Add instructions about the release procedure
Browse files Browse the repository at this point in the history
  • Loading branch information
amotl committed Jun 14, 2024
1 parent 135f825 commit d4e2074
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doc/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,10 @@ Ad Hoc Diagnosis (WTF) <wtf/index>
:caption: Workbench
:hidden:
sandbox
changes
backlog
sandbox
release
```


Expand Down
40 changes: 40 additions & 0 deletions doc/release.md
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
```

0 comments on commit d4e2074

Please sign in to comment.