Judging from the docs there is nothing more involved than just a config file.
http://eftimov.net/writing-elixir-library
Here’s a magic-8ball tutorial I saw last year which publishes to Hex. A quick google search turns up a few more hex publishing tutorials but in essence they are all identical. Create account -> create config -> publish.