Hook publish into Elixir