Skip to content

Commit

Permalink
publish alias
Browse files Browse the repository at this point in the history
  • Loading branch information
ericsullivan committed Jan 25, 2018
1 parent 3060f1c commit 08c6f8e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ defmodule Curator.Mixfile do
homepage_url: @url,
docs: docs(),
dialyzer: [plt_add_deps: :project],
aliases: aliases(),
]
end

Expand Down Expand Up @@ -58,4 +59,12 @@ defmodule Curator.Mixfile do
files: ["lib", "mix.exs", "README*", "LICENSE*", "CHANGELOG.md"],
]
end

defp aliases do
["publish": ["hex.publish", &git_tag/1]]
end

defp git_tag(_args) do
System.cmd "git", ["tag", "v" <> Mix.Project.config[:version]]
end
end

0 comments on commit 08c6f8e

Please sign in to comment.