We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8bc7742 commit b8b199eCopy full SHA for b8b199e
1 file changed
.circleci/config.yml
@@ -55,6 +55,22 @@ jobs:
55
paths:
56
- _build
57
- deps
58
+ publish:
59
+ docker:
60
+ - image: hexpm/elixir:1.18.2-erlang-27.2.1-alpine-3.21.2
61
+ steps:
62
+ - checkout
63
+ - run:
64
+ name: Publish GitHub release
65
+ command: |
66
+ apk add --no-cache github-cli
67
+ sed -n "/^## $CIRCLE_TAG/,/^## /p" CHANGELOG.md | sed '1d; /^## /d' > RELEASE_NOTES
68
+ gh release create $CIRCLE_TAG --notes "$(cat RELEASE_NOTES)"
69
70
+ name: Publish to hex.pm
71
72
+ mix deps.get
73
+ mix hex.publish --yes
74
75
workflows:
76
checks:
@@ -64,3 +80,14 @@ workflows:
80
matrix:
81
parameters:
82
tag: *tags
83
+ filters:
84
+ tags:
85
+ only: /.*/
86
+ - publish:
87
+ requires:
88
+ - build-test
89
90
91
+ only: /^v.*/
92
+ branches:
93
+ ignore: /.*/
0 commit comments