Skip to content

Commit

Permalink
publish to public hex
Browse files Browse the repository at this point in the history
  • Loading branch information
the-mikedavis committed Feb 4, 2021
1 parent fd15ff8 commit 288d162
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 11 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ jobs:
run: |
mix local.rebar --force
mix local.hex --force
mix hex.organization auth cuatro --key $CUATRO_HEX_KEY
mix deps.get
- name: Compile dependencies
Expand Down Expand Up @@ -118,7 +117,6 @@ jobs:
run: |
mix local.rebar --force
mix local.hex --force
mix hex.organization auth cuatro --key $CUATRO_HEX_KEY
mix deps.get
- name: Compile dependencies
Expand Down Expand Up @@ -151,7 +149,7 @@ jobs:
prerelease: false

- name: Publish library
run: mix hex.publish --yes --organization cuatro
run: mix hex.publish --yes
env:
HEX_API_KEY: ${{ secrets.HEX_PUBLISH_KEY }}

Expand Down
1 change: 0 additions & 1 deletion .github/workflows/refresh-dev-cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ jobs:
run: |
mix local.rebar --force
mix local.hex --force
mix hex.organization auth cuatro --key $CUATRO_HEX_KEY
mix deps.get
- name: Compile dependencies
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ The format is based on [Keep a
Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to
[Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## 0.1.2 - 2021-02-03

### Fixed

- Published to public hex.pm
- accidentally published initial versions to our private hex

## 0.1.1 - 2021-02-03

### Fixed
Expand Down
2 changes: 2 additions & 0 deletions lib/slipstream/honeycomb/connection.ex
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,12 @@ defmodule Slipstream.Honeycomb.Connection do
{:noreply, state}
end

@doc false
def handle_event(event, measurements, metadata, _state) do
GenServer.cast(__MODULE__, {event, measurements, metadata})
end

@doc false
@impl GenServer
def handle_cast({event, measurements, metadata}, state) do
{event, measurements, metadata}
Expand Down
12 changes: 5 additions & 7 deletions mix.exs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
defmodule SlipstreamHoneycomb.MixProject do
use Mix.Project

@source_url "https://github.com/NFIBrokerage/slipstream_honeycomb"
@version_file Path.join(__DIR__, ".version")
@external_resource @version_file
@version (case Regex.run(~r/^v([\d\.\w-]+)/, File.read!(@version_file),
Expand Down Expand Up @@ -28,7 +29,7 @@ defmodule SlipstreamHoneycomb.MixProject do
test_coverage: [tool: ExCoveralls],
package: package(),
description: description(),
source_url: "https://github.com/NFIBrokerage/slipstream_honeycomb",
source_url: @source_url,
name: "SlipstreamHoneycomb",
docs: docs()
]
Expand Down Expand Up @@ -60,10 +61,10 @@ defmodule SlipstreamHoneycomb.MixProject do
[
name: "slipstream_honeycomb",
files: ~w(lib .formatter.exs mix.exs README.md .version),
licenses: [],
organization: "cuatro",
licenses: ["Apache-2.0"],
links: %{
"GitHub" => "https://github.com/NFIBrokerage/slipstream_honeycomb"
"GitHub" => @source_url,
"CHANGELOG" => @source_url <> "/blobs/main/CHANGELOG.md"
}
]
end
Expand All @@ -74,9 +75,6 @@ defmodule SlipstreamHoneycomb.MixProject do

defp docs do
[
# do you reference other projects in your documentation? if so, add
# them to the :deps key here. for an example, see
# https://github.com/NFIBrokerage/projection/blob/5f406872d00156e2b94cfa9fae8e92a1aa4c177b/mix.exs#L88-L90
deps: [],
extras: [
"CHANGELOG.md"
Expand Down

0 comments on commit 288d162

Please sign in to comment.