Been thinking about how to automate an Elixir release build via my server configuration management software (Salt).
The cleanest method I’ve come up with so far is to abstract the app’s version string into its own file, then detect when that file changes and trigger the release build.
Is there a better/cleaner way to handle this?
If not, what is the cleanest way to read the version string from this separate file? Digging around a bit, the only example I found was this:
defmodule MyApp.Mixfile do use Mix.Project def project do [ app: :my_app, version: String.trim(File.read!("VERSION")), ] end end