Skip to content

Commit 2e12ea3

Browse files
committed
Publish to hex.pm on successful CI builds
1 parent a65f81a commit 2e12ea3

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.circleci/config.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,13 @@ jobs:
5555
paths:
5656
- _build
5757
- deps
58+
publish:
59+
docker:
60+
- image: hexpm/elixir:latest
61+
steps:
62+
- checkout
63+
- run: mix deps.get
64+
- run: mix hex.publish --yes
5865

5966
workflows:
6067
checks:
@@ -64,3 +71,11 @@ workflows:
6471
matrix:
6572
parameters:
6673
tag: *tags
74+
- publish:
75+
requires:
76+
- build-test
77+
filters:
78+
tags:
79+
only: /^v\d+\.\d+\.\d+$/ # Only version tags
80+
branches:
81+
ignore: /.*/

0 commit comments

Comments
 (0)