|
| 1 | +# Making a release |
| 2 | + |
| 3 | +To make a new release of bempp, follow the following steps: |
| 4 | + |
| 5 | +0) If you are yet to make a release on your current computer, run `cargo login` and copy an API |
| 6 | + key from https://crates.io/me |
| 7 | + |
| 8 | +1) Checkout the branch `release` and merge the branch `main` into the branch `release`: |
| 9 | + ```bash |
| 10 | + git checkout release |
| 11 | + git merge main |
| 12 | + ``` |
| 13 | + |
| 14 | +2) Update the version number in `Cargo.toml`. |
| 15 | + The version numbers have the format `[x].[y].[z]`. If you are releasing a major |
| 16 | + version, you should increment `[x]` and set `[y]` and `[z]` to 0. |
| 17 | + If you are releasing a minor version, you should increment `[y]` and set `[z]` |
| 18 | + to zero. If you are releasing a bugfix, you should increment `[z]`. |
| 19 | + |
| 20 | +4) In `Cargo.toml`, check that the `rlst`, `green-kernels`, and `kifmm` |
| 21 | + dependencies are at the latest version. |
| 22 | + |
| 23 | +5) Commit your changes and push to GitHub. Wait to see if the CI tests pass. |
| 24 | + |
| 25 | +6) [Create a release on GitHub](https://github.com/bempp/kifmm/releases/new) from the `release` branch. |
| 26 | + The release tag and title should be `v[x].[y].[z]` (where `[x]`, `[y]` and `[z]` are as in step 2). |
| 27 | + In the "Describe this release" box, you should bullet point the main changes since the last |
| 28 | + release. |
| 29 | + |
| 30 | +7) Run `cargo publish --dry-run`, then run `cargo package --list` and |
| 31 | + check that no unwanted extras have been included in the release. |
| 32 | + |
| 33 | +8) If everything is working as expected, run `cargo publish`. This will push the new version to |
| 34 | + crates.io. Note: this cannot be undone, but you can use `cargo yank` to mark a version as |
| 35 | + unsuitable for use. |
| 36 | + |
| 37 | +9) Open a pull request to `main` to update the version number in `Cargo.toml` to `[x].[y].[z]-dev` |
0 commit comments