Skip to content

Commit

Permalink
Added auto publish to hex.pm
Browse files Browse the repository at this point in the history
  • Loading branch information
vkatsuba committed May 14, 2021
1 parent 47cce6b commit 10a7e34
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/hex.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Publish to hex.pm

on:
push:
tags:
- '*'

jobs:
publish:
runs-on: ubuntu-latest
container:
image: erlang:24.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
- name: Checkout
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

0 comments on commit 10a7e34

Please sign in to comment.