Skip to content

Commit

Permalink
Add publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Flo0807 committed Feb 3, 2024
1 parent cb95b0a commit 0d6d2c7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: CI

on:
push:
release:
types: [published]

jobs:
ci:
Expand All @@ -22,3 +24,9 @@ jobs:

- name: Run Tests
run: mix test

- name: Publish package
if: github.event_name == 'release'
env:
HEX_API_KEY: ${{ secrets.HEX_API_KEY }}
run: mix hex.publish --yes

0 comments on commit 0d6d2c7

Please sign in to comment.