/action-publish-hex

:rocket: Publish elixir packages to hex.pm

Primary LanguageShellMIT LicenseMIT

action-publish-hex

Publish elixir packages to hex.pm

Usage

  • Create a key on your hex.pm dashboard.
  • Add the key to your GitHub repository’s secrets. Call it HEX_API_KEY.
  • Use this GitHub Action in your workflow:
on:
  push:
    tags:
      - "*"

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

      - name: Publish package to hex.pm
        uses: CoderDennis/action-publish-hex@v1
        env:
          HEX_API_KEY: ${{ secrets.HEX_API_KEY }}