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 147ea8a
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Hex Release

on:
release:
types: [published]

jobs:
hex_release:
runs-on: ubuntu-latest
environment:
name: 'Hex'

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 147ea8a

Please sign in to comment.