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