Skip to content

Commit 0d6d2c7

Browse files
committed
Add publish workflow
1 parent cb95b0a commit 0d6d2c7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/ci.yml

+8
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ name: CI
22

33
on:
44
push:
5+
release:
6+
types: [published]
57

68
jobs:
79
ci:
@@ -22,3 +24,9 @@ jobs:
2224

2325
- name: Run Tests
2426
run: mix test
27+
28+
- name: Publish package
29+
if: github.event_name == 'release'
30+
env:
31+
HEX_API_KEY: ${{ secrets.HEX_API_KEY }}
32+
run: mix hex.publish --yes

0 commit comments

Comments
 (0)