In order to release a new version to Hex.pm we need to:
- List the changes in the
CHANGELOG.md
file - Update the
README.md
,CHANGELOG.md
andmix.exs
with the new version - Commit and create a tag for that version
- Push the changes to the repository with:
git push origin main --tags
- Wait for the CI to build all release artifacts
- Run
mix rustler_precompiled.download MailParser --all --print
- Copy the output of the mix task and add it to the release notes
- Run
mix hex.publish
and make sure the checksum file is present in the list of files to be published.
It is important to make sure that we publish the checksum file along with the package, otherwise users will not be able to use the library with precompiled files. In this case, the compilation would always be enforced.