Skip to content

Commit 650a7b4

Browse files
committed
Publish releases to GitHub
1 parent fb7dc3a commit 650a7b4

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

.circleci/config.yml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,21 @@ jobs:
7070
LC_ALL: C.UTF-8
7171
steps:
7272
- checkout
73-
- run: apk add --no-cache build-base linux-headers
74-
- run: mix local.hex --force
75-
- run: mix deps.get
76-
- run: mix hex.publish --yes
73+
- run:
74+
name: Install packages
75+
command: |
76+
apk add --no-cache build-base linux-headers github-cli
77+
- run:
78+
name: Publish GitHub release
79+
command: |
80+
sed -n "/^## $CIRCLE_TAG/,/^## /p" CHANGELOG.md | sed '1d; /^## /d' > RELEASE_NOTES
81+
gh release create $CIRCLE_TAG --notes "$(cat RELEASE_NOTES)"
82+
- run:
83+
name: Publish to hex.pm
84+
command: |
85+
mix local.hex --force
86+
mix deps.get
87+
mix hex.publish --yes
7788
7889
workflows:
7990
checks:

0 commit comments

Comments
 (0)