name: hexpm-release

on:
  push:
    tags:
      - '*'

jobs:
  release:
    runs-on: ubuntu-latest
    steps:
      - name: Check out
        uses: actions/checkout@v2

      - name: Publish to hex.pm
        run: rebar3 hex publish --repo hexpm --yes || head rebar3.crashdump
        env:
          HEX_API_KEY: ${{ secrets.HEX_API_KEY }}

      - uses: actions/upload-artifact@v2
        with:
          name: rebar-files
          path: rebar*
          if-no-files-found: ignore

Add Github Action to release in hex.pm when tagging
Add Github Action to release in hex.pm when tagging
