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 7b55fb1 commit 386536a
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 2 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
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
regine - modular Erlang process registry
========================================
[![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 @@ -23,8 +25,11 @@ Using rebar3:
[1]: https://github.com/uwiger/gproc

<!-- Badges -->
[hexpm]: https://hex.pm/packages/regine
[hexpm version]: https://img.shields.io/hexpm/v/regine.svg?style=flat-square
[hexpm downloads]: https://img.shields.io/hexpm/dt/regine.svg?style=flat-square
[gh]: https://github.com/travelping/regine/actions/workflows/main.yml
[gh badge]: https://img.shields.io/github/workflow/status/travelping/regine/CI?style=flat-square
[coveralls]: https://coveralls.io/github/travelping/regine
[coveralls badge]: https://img.shields.io/coveralls/travelping/regine/master.svg?style=flat-square
[coveralls badge]: https://img.shields.io/coveralls/travelping/regine?style=flat-square
[erlang version badge]: https://img.shields.io/badge/erlang-19.1%20to%2023.2-blue.svg?style=flat-square
2 changes: 2 additions & 0 deletions rebar.config
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
locals_not_used, deprecated_function_calls,
deprecated_funcqtions]}.

{plugins, [rebar3_hex]}.

%% == Cover ==
%% Whether to enable coverage reporting. Default is `false'
{cover_enabled, true}.
Expand Down
4 changes: 3 additions & 1 deletion src/regine.app.src
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@
{vsn, semver},
{registered,[]},
{env,[]},
{applications,[kernel,stdlib]}]
{applications,[kernel,stdlib]},
{licenses, ["MIT"]},
{links, [{"Github", "https://github.com/travelping/regine"}]}]
}.

0 comments on commit 386536a

Please sign in to comment.