TL;DR: Use GitHub Flow.
In more detail:
- Create a feature branch.
- Create and push commits on that branch.
- The feature branch will get tested on GitHub Actions (GHA) with each push.
- Update the CHANGELOG with description of changes.
- Create a Pull Request on GitHub.
- When the feature PR is merged, main will get built on GHA.
-
Update the CHANGELOG to list the new version.
-
Add files and commit
$ git add CHANGELOG.md ... $ git commit -m "Release v.X.Y.Z"
-
Bump the version to the desired level. This will create a commit with the version change.
$ bumpversion (major|minor|patch)
-
Tag the commit with the version
$ git tag vX.Y.Z
-
Push
$ git push origin main --tags
GHA will build the conda package and publish it to anaconda.org.