//TODO: remake readme Starter project for HEX packages. Includes a GH action to publish to hex.pm on push.
-
First, create a key on your Hex.pm dashboard.
-
Next, add the key from step 1 to your GitHub repository’s secrets. Call it HEX_API_KEY.
If available in Hex, the package can be installed
by adding hex_template
to your list of dependencies in mix.exs
:
def deps do
[
{:hex_template, "~> 0.1.0"}
]
end
Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/hex_template.