Skip to content

Instantly share code, notes, and snippets.

@seymores
Created December 22, 2016 15:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seymores/b63e0f9740022f822ec36bfffa0e1c3c to your computer and use it in GitHub Desktop.
Save seymores/b63e0f9740022f822ec36bfffa0e1c3c to your computer and use it in GitHub Desktop.
Publish new elixir library
1. In mix.exs, create
defp package do
[
files: ["lib", "mix.exs", "README", "LICENSE*"],
maintainers: ["Your Name"],
licenses: ["Apache 2.0"],
links: %{"GitHub" => "https://github.com/fteem/some_app_name"}
]
end
2. Add to project section like this;
def project do
[app: :app_name,
version: "0.0.1",
elixir: "~> 1.0",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps,
description: "Something something",
package: package ]
end
3. Run `mix hex.publish"
4. If not registered yet then `mix hex.user register`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment