Skip to content

Commit

Permalink
adds publish to Hex GitHub action
Browse files Browse the repository at this point in the history
  • Loading branch information
CoderDennis committed Jan 29, 2024
1 parent ef330fc commit ae815d5
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/elixir.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
name: Elixir CI

on:
[workflow_call] # allow this workflow to be called from other workflows
push:
branches: [ "main" ]
pull_request:
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/hex.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
on:
push:
tags:
- '*'

jobs:
build:
uses: ./.github/workflows/elixir.yml
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 }}

0 comments on commit ae815d5

Please sign in to comment.