When pushing commits to master (or maybe manually) run a CI action that creates a new release and pushes it to hex.pm.
https://elixirschool.com/blog/managing-releases-with-release-please
Also worth taking a look at https://semantic-release.gitbook.io/