Skip to content

Commit

Permalink
Merge pull request #10 from alertlogic/hex_publishing
Browse files Browse the repository at this point in the history
Add rebar3_hex, Github Action definition for hex publish on tag
  • Loading branch information
rmpalomino authored Nov 12, 2024
2 parents f9fbd14 + bbf2d03 commit 3e229b5
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/hex_publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
name: Publish to Hex.pm
on:
push:
tags:
- '*'

jobs:
publish:
runs-on: ubuntu-latest
container: erlang:27

steps:
- name: Check out
uses: actions/checkout@v4

- name: 'Fix up git directory ownership (see https://github.com/actions/checkout/issues/1049)'
run: git config --global --add safe.directory '*'

- name: Publish to Hex.pm
env:
HEX_API_KEY: ${{ secrets.HEX_API_KEY }}
run: rebar3 hex publish package -r hexpm --yes
2 changes: 2 additions & 0 deletions rebar.config
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,5 @@
]}
]}
]}.

{project_plugins, [rebar3_hex]}.

0 comments on commit 3e229b5

Please sign in to comment.