Skip to content

Commit

Permalink
chore: add release github action
Browse files Browse the repository at this point in the history
  • Loading branch information
Eduardo Cunha committed Jul 29, 2024
1 parent 59ccbb4 commit d66c57a
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Hex Release

on:
release:
types: [published]

jobs:
hex_release:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: main

- uses: erlef/setup-beam@v1
with:
otp-version: 27.0
elixir-version: 1.17

- uses: actions/cache@v4
with:
path: |
deps
_build
key: ${{ runner.os }}-mix-1.17-27.0-${{ hashFiles('**/mix.lock') }}
restore-keys: |
${{ runner.os }}-mix-1.17-27.0-
- name: Hex publish
run: mix hex.publish --yes
env:
HEX_API_KEY: ${{ secrets.HEX_API_KEY }}

0 comments on commit d66c57a

Please sign in to comment.