Skip to content

Automatically publish packages on Hex.pm on commits to your repository

License

Notifications You must be signed in to change notification settings

erlangpack/github-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ErlangPack GitHub Action

Keeping our packages up to date on Hex.pm is something we all forget too easily. This GitHub Action publishes your code to Hex.pm automatically using Rebar3. This is most useful when you tag your repository.

Usage

  1. First, create a key on your Hex.pm dashboard.

  2. Next, add the key from step 1 to your GitHub repository’s secrets. Call it HEX_API_KEY.

  3. Finally, 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 to Hex.pm
            uses: erlangpack/github-action@v3
            env:
              HEX_API_KEY: ${{ secrets.HEX_API_KEY }}