Преглед на файлове

feat(mix): always run merge-config before release

Thales Macedo Garitezi преди 1 година
родител
ревизия
39c82fbe89
променени са 1 файла, в които са добавени 7 реда и са изтрити 0 реда
  1. 7 0
      mix.exs

+ 7 - 0
mix.exs

@@ -572,6 +572,7 @@ defmodule EMQXUmbrella.MixProject do
         } = check_profile!()
 
         base_steps = [
+          &merge_config/1,
           &make_docs/1,
           :assemble,
           &create_RELEASES/1,
@@ -810,6 +811,12 @@ defmodule EMQXUmbrella.MixProject do
   #  Custom Steps
   #############################################################################
 
+  # Gathers i18n files and merge them before producing docs and schemas.
+  defp merge_config(release) do
+    {_, 0} = System.cmd("bash", ["-c", "./scripts/merge-config.escript"])
+    release
+  end
+
   defp make_docs(release) do
     profile = System.get_env("MIX_ENV")
     os_cmd("build", [profile, "docs"])