diff --git a/RELEASE.md b/RELEASE.md new file mode 100644 index 0000000..2318daf --- /dev/null +++ b/RELEASE.md @@ -0,0 +1,7 @@ +# Steps for publishing new version + +1. Update version in `src/telemetry.app.src` +2. Update version in `docs.sh` +3. Run `./docs.sh` +4. Run `rebar3 as docs hex publish` +5. Run `rebar3 as docs hex docs` diff --git a/mix.exs b/mix.exs new file mode 100644 index 0000000..eb2c802 --- /dev/null +++ b/mix.exs @@ -0,0 +1,20 @@ +# This file is only used by Telemetry as a dependency. +# Use rebar3 instead for compiling, running tests, etc. +defmodule Telemetry.MixProject do + use Mix.Project + + {:ok, [{:application, :telemetry, props}]} = :file.consult("src/telemetry.app.src") + @props props + + def application do + @props + end + + def project do + [ + app: :telemetry, + version: to_string(application()[:vsn]), + language: :erlang + ] + end +end diff --git a/src/telemetry.app.src b/src/telemetry.app.src index 9b6c9eb..cbbe8e6 100644 --- a/src/telemetry.app.src +++ b/src/telemetry.app.src @@ -1,6 +1,6 @@ {application, telemetry, [{description, "Dynamic dispatching library for metrics and instrumentations"}, - {vsn, "git"}, + {vsn, "1.0.0"}, {registered, []}, {mod, {telemetry_app, []}}, {applications,