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 3, 2021
1 parent 7b55fb1 commit 3eff5ec
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 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
5 changes: 5 additions & 0 deletions 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,6 +25,9 @@ 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
[hexpm downloads]: https://img.shields.io/hexpm/dt/regine.svg?style=flat
[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
Expand Down
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

0 comments on commit 3eff5ec

Please sign in to comment.