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

This commit is contained in:
Thales Macedo Garitezi 2024-07-11 14:17:21 -03:00
parent 70786d6aca
commit 39c82fbe89
1 changed files with 7 additions and 0 deletions

View File

@ -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"])