| 1 | --- |
| 2 | name: Release checklist |
| 3 | about: '[for maintainer use]' |
| 4 | title: 'Release gsd 5.0.1' |
| 5 | labels: '' |
| 6 | |
| 7 | --- |
| 8 | |
| 9 | To make a new GSD release: |
| 10 | |
| 11 | - [ ] Make a new `release-{X.Y.Z}` branch (where `{X.Y.Z}` is the new version). |
| 12 | |
| 13 | On that branch, take the following steps (committing after each step when needed): |
| 14 | |
| 15 | - [ ] Run `prek autoupdate` |
| 16 | - [ ] Check for new or duplicate contributors since the last release: |
| 17 | `comm -13 (git log $(git describe --tags --abbrev=0) --format="%aN <%aE>" | sort | uniq | psub) (git log --format="%aN <%aE>" | sort | uniq | psub)`. |
| 18 | Add entries to `.mailmap` to remove duplicates. |
| 19 | - [ ] Review `CHANGELOG.rst` and revise if needed. |
| 20 | - [ ] Run `bump-my-version bump {type}`. Replace `{type}` with: |
| 21 | - `patch` when this release *only* includes bug fixes. |
| 22 | - `minor` when this release includes new features and possibly bug fixes. |
| 23 | - `major` when this release includes API breaking changes. |
| 24 | - [ ] Push the branch and open a pull request. |
| 25 | - [ ] Check that readthedocs builds the docs correctly in the pull request checks. |
| 26 | - [ ] Merge the pull request after all tests pass. |
| 27 | - [ ] Make a new tag on the trunk branch: |
| 28 | ``` |
| 29 | git switch trunk |
| 30 | git pull |
| 31 | git tag -a v{X.Y.Z} |
| 32 | git push origin --tags |
| 33 | ``` |
| 34 | |
| 35 | > [!IMPORTANT] |
| 36 | > Make sure to **include** `v` in the tag name! |
| 37 | |
| 38 | Navigate to https://github.com/glotzerlab/gsd/actions and approve the request |
| 39 | to post the release. The `release` GitHub Action will post GitHub and PyPI |
| 40 | releases. After a few hours, the conda-forge autotick bot will submit a PR for |
| 41 | the new release. |
| 42 | |
| 43 | - [ ] Check that the GitHub release posted correctly: https://github.com/glotzerlab/hoomd-blue/releases |
| 44 | - [ ] Check that the PyPi release posted correctly: https://pypi.org/project/gsd/ |
| 45 | - [ ] Merge the conda-forge recipe, updating it first if necessary (e.g. when adding dependencies). |
| 46 | |
| 47 | |
| 48 | - [ ] Via pull request, add a blank release notes entry for the next release: |
| 49 | ``` |
| 50 | Next release |
| 51 | ^^^^^^^^^^^^^^^^^^^^ |
| 52 | |
| 53 | *Added* |
| 54 | |
| 55 | *Changed* |
| 56 | |
| 57 | *Deprecated* |
| 58 | |
| 59 | *Removed* |
| 60 | |
| 61 | *Fixed* |
| 62 | ``` |
| 63 | |
| 64 | > [!NOTE] |
| 65 | > Paste `Next release` exactly as shown. `bump-my-version` will replace that |
| 66 | > string with the version number and date. |