From 10a7e34acbcb2d17f228cc93a83c3afff6baced2 Mon Sep 17 00:00:00 2001 From: vkatsuba Date: Fri, 14 May 2021 12:39:56 +0300 Subject: [PATCH] Added auto publish to hex.pm --- .github/workflows/hex.yaml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/hex.yaml diff --git a/.github/workflows/hex.yaml b/.github/workflows/hex.yaml new file mode 100644 index 0000000..18939c2 --- /dev/null +++ b/.github/workflows/hex.yaml @@ -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