Here are the step by step instructions to release a new version of xESMF.
- Make sure
CHANGES.rstis up to date and includes a section on the version to be released;
- On GitHub, go the Releases page and click on Draft a new release;
- Enter new version in Tag version (e.g. v<major>.<minor>.<patch>);
- Enter the Release title (e.g. the same tag);
- Copy the relevant section of
CHANGES.rstin the description;
- Click Publish release; Keep this tab open, we’ll come back to it.
- Go to Actions and in the left-hand menu select Upload xesmf to PyPi;
- Click on the release you just made;
- At the bottom of the page, wait for the action to complete then download the artifact to your local disk;
- Unzip it;
- Run shell command
sha256sumon xesmf-<version>.tar.gz and copy the checksum string;
- Add the artifacts (drag & drop) to the Assets of the Github release you just created.
- Go to the conda-forge repo and edit the recipe/meta.yml file;
- Update the version on the first line to the latest release;
- Update the sha256 value in the source section to the checksum just calculated;
- Enter a commit message, e.g. (Update version to <version>);
- Submit the pull request (Propose changes);
- Get an approval from a maintainer to merge the pull request.
Note that Conda Forge’s Continuous Integration (CI) checks will fail if you haven’t uploaded the artifacts to the Github release assets or if the sha256 checksum does not match the asset’s. In case you need to re-run the CI checks, just post the comment @conda-forge-admin, please restart ci.