Skip to content

Commit

Permalink
chore: use git tag version instead
Browse files Browse the repository at this point in the history
  • Loading branch information
boolafish committed Dec 9, 2020
1 parent fef32f8 commit 097e3de
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion VERSION

This file was deleted.

2 changes: 1 addition & 1 deletion apps/omg/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ defmodule OMG.MixProject do
def project() do
[
app: :omg,
version: "#{String.trim(File.read!("../../VERSION"))}",
version: String.replace(elem(System.cmd("git", ["describe", "--tags", "--abbrev=0"]), 0), "\n", ""),
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
Expand Down
3 changes: 1 addition & 2 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,7 @@ defmodule OMG.Umbrella.MixProject do
defp docker(), do: if(System.get_env("DOCKER"), do: "_docker", else: "")

defp current_version() do
sha = String.replace(elem(System.cmd("git", ["rev-parse", "--short=7", "HEAD"]), 0), "\n", "")
"#{String.trim(File.read!("VERSION"))}" <> "+" <> sha
String.replace(elem(System.cmd("git", ["describe", "--tags"]), 0), "\n", "")
end

defp steps() do
Expand Down

0 comments on commit 097e3de

Please sign in to comment.