@@ -86,7 +86,7 @@ There are 8 configuration files located in `.github/workflows`:
8686 Archives will be pushed to TestPyPI on every commit to the * master* branch
8787 and tagged releases, and to PyPI for tagged releases only.
8888
89- 6 . ` release-drafer .yml ` (Drafts the next release notes)
89+ 6 . ` release-drafter .yml ` (Drafts the next release notes)
9090
9191 This workflow is run to update the next releases notes as pull requests are
9292 merged into master.
@@ -131,31 +131,28 @@ https://github.com/release-drafter/release-drafter.
131131The drafted release notes are not perfect, so we will need to tidy it prior to
132132publishing the actual release notes at https://www.pygmt.org/latest/changes.html .
133133
134- 1 . Generate a list of commits between the last release tag and now:
134+ 1 . Go to https://github.com/GenericMappingTools/pygmt/releases and click on the
135+ 'Edit' button next to the current draft release note. Copy the text of the
136+ automatically drafted release notes under the 'Write' tab to
137+ ` doc/changes.md ` . Add a section separator ` --- ` between the new and old
138+ changelog sections.
139+ 2 . Update the DOI badge in the changelog. Remember to replace the DOI number
140+ inside the badge url.
135141
136- ``` bash
137- git log HEAD...v0.1.2 --pretty=" * %s" > changes.txt
138142 ```
139-
140- 2. Edit the changes list to remove any trivial changes (updates to the README, typo
141- fixes, CI configuration, etc).
142- 3. Replace the PR number in the commit titles with a link to the GitHub PR page.
143- Use ` ` sed -i.bak -E ' s$\(#([0-9]*)\)$(`#\1 <https://github.com/GenericMappingTools/pygmt/pull/\1>`__)$g' changes.rst` `
144- to make the change automatically.
145- 4. Copy the remaining changes to ` doc/changes.rst` under a new section for the
146- intended release.
147- 5. Add a list of people who contributed to the release (use
148- ` ` git shortlog HEAD...v0.1.2 -sne ` ` ).
149- 6. Include the DOI badge in the changelog. Remember to replace your DOI inside the badge url.
150-
143+ [](https://doi.org/10.5281/zenodo.<INSERT-DOI-HERE>)
151144 ```
152- .. image:: https://zenodo.org/badge/DOI/< INSERT-DOI-HERE> .svg
153- :alt: Digital Object Identifier for the Zenodo archive
154- :target: https://doi.org/< INSERT-DOI-HERE>
155- ```
156-
157- 7. Add a link to the new release version documentation in ` README.rst` .
158- 8. Open a new PR with the updated changelog.
145+ 3. Open a new Pull Request using the title 'Changelog entry for vX.Y.Z' with
146+ the updated release notes, so that other people can help to review and
147+ collaborate on the changelog curation process described next.
148+ 4. Edit the change list to remove any trivial changes (updates to the README,
149+ typo fixes, CI configuration, etc).
150+ 5. Edit the list of people who contributed to the release, linking to their
151+ GitHub account. Sort their names by the number of commits made since the
152+ last release (e.g. use `` git shortlog HEAD...v0.1.2 -sne ``).
153+ 6. Update `README.rst` with new information on the new release version, namely
154+ the BibTeX citation, a vX.Y.Z documentation link, and compatibility with
155+ Python and GMT versions.
159156
160157### Check the README syntax
161158
0 commit comments