Skip to content

Commit

Permalink
Add hex to GH action
Browse files Browse the repository at this point in the history
  • Loading branch information
vkatsuba committed Mar 8, 2021
1 parent 0bbb30f commit 315a436
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 3 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/hex.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: publish to hex.pm

on:
push:
tags:
- '*'

jobs:
publish:
runs-on: ubuntu-20.04
container:
image: erlang:23.2.5.0-alpine
steps:
- name: Prepare
run: |
apk update
apk --no-cache upgrade
apk --no-cache add gcc git libc-dev libc-utils libgcc linux-headers make bash \
musl-dev musl-utils ncurses-dev pcre2 pkgconf scanelf wget zlib
- uses: actions/checkout@v2
- name: Publish to Hex.pm
env:
HEX_API_KEY: ${{ secrets.HEX_API_KEY }}
run: |
rebar3 edoc
rebar3 hex publish -r hexpm --yes
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ rebar.lock
/c_src/*.d
rebar3
rebar.lock
doc
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
dhcpv6
======
[![Hex.pm Version][hexpm version]][hexpm]
[![Hex.pm Downloads][hexpm downloads]][hexpm]
[![Build Status][gh badge]][gh]
[![Coverage Status][coveralls badge]][coveralls]
[![Erlang Versions][erlang version badge]][gh]
Expand All @@ -25,6 +27,9 @@ Using rebar:
# rebar3 compile

<!-- Badges -->
[hexpm]: https://hex.pm/packages/dhcpv6
[hexpm version]: https://img.shields.io/hexpm/v/dhcpv6.svg?style=flat-square
[hexpm downloads]: https://img.shields.io/hexpm/dt/dhcpv6.svg?style=flat-square
[gh]: https://github.com/travelping/dhcpv6/actions/workflows/main.yml
[gh badge]: https://img.shields.io/github/workflow/status/travelping/dhcpv6/CI?style=flat-square
[coveralls]: https://coveralls.io/github/travelping/dhcpv6
Expand Down
5 changes: 3 additions & 2 deletions rebar.config
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@

{plugins, [
% @TODO: Folow https://github.com/markusn/coveralls-erl/pull/36 and use `coveralls` after release
{coveralls, {git, "https://github.com/RoadRunnr/coveralls-erl.git", {branch, "feature/git-info"}}}]
}.
{coveralls, {git, "https://github.com/RoadRunnr/coveralls-erl.git", {branch, "feature/git-info"}}},
rebar3_hex
]}.

%% == Cover covervalls.io ==
{cover_enabled, true}.
Expand Down
4 changes: 3 additions & 1 deletion src/dhcpv6.app.src
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,7 @@
{modules, [dhcpv6_app, dhcpv6_sup, dhcpv6_server, dhcpv6_udp_server, dhcpv6_raw_server, dhcpv6_alloc, dhcpv6_lib]},
{registered, [dhcpv6_sup, dhcpv6_udp_server, dhcpv6_raw_server, dhcpv6_alloc]},
{applications, [kernel, stdlib]},
{mod, {dhcpv6_app, []}}
{mod, {dhcpv6_app, []}},
{licenses, ["GPL 2.0"]},
{links, [{"Github", "https://github.com/travelping/dhcpv6"}]}
]}.

0 comments on commit 315a436

Please sign in to comment.