Skip to content

Commit

Permalink
Configure hex
Browse files Browse the repository at this point in the history
  • Loading branch information
sasa1977 committed Jan 14, 2021
1 parent 15c0c13 commit 3022626
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 7 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Changelog

## 0.1.0

- first version
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# CI

[![hex.pm](https://img.shields.io/hexpm/v/ci.svg?style=flat-square)](https://hex.pm/packages/ci)
[![hexdocs.pm](https://img.shields.io/badge/docs-latest-green.svg?style=flat-square)](https://hexdocs.pm/ci/)

CI/CD toolkit as an Elixir library.

## Status
Expand Down Expand Up @@ -71,8 +74,8 @@ end)

defp deps do
[
{:ci, github: "sasa1977/ci"},
...
{:ci, "~> 0.1.0"},
# ...
]
end
```
Expand Down
27 changes: 22 additions & 5 deletions mix.exs
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
defmodule Ci.MixProject do
use Mix.Project

@version "0.1.0"

def project do
[
app: :ci,
version: "0.1.0",
version: @version,
elixir: "~> 1.11",
start_permanent: Mix.env() == :prod,
deps: deps(),
compilers: Mix.compilers() ++ [:os_cmd],
preferred_cli_env: preferred_cli_env(),
dialyzer: dialyzer(),
package: package(),
docs: docs()
]
end
Expand Down Expand Up @@ -41,10 +44,24 @@ defmodule Ci.MixProject do
defp docs do
[
main: "readme",
extras: ["README.md", "LICENSE"],
groups_for_modules: [
Job: ~r/Job((\..+)|$)/
]
extras: ["README.md", "CHANGELOG.md", "LICENSE"],
groups_for_modules: [Job: ~r/Job((\..+)|$)/],
source_ref: @version
]
end

defp package() do
[
description: "CI/CD toolkit as an Elixir library",
maintainers: ["Saša Jurić"],
licenses: ["MIT"],
links: %{
"Github" => "https://github.com/sasa1977/ci",
"Changelog" =>
"https://github.com/sasa1977/ci/blob/#{@version}/CHANGELOG.md##{
String.replace(@version, ".", "")
}"
}
]
end
end

0 comments on commit 3022626

Please sign in to comment.