Skip to content

Commit 0964aa5

Browse files
authored
ci: Add Discord webhook for release announcements (#86)
Integrate Discord webhook into the JReleaser workflow and configure Discord announcements in the build script. Signed-off-by: Eric Deandrea <[email protected]>
1 parent fc73120 commit 0964aa5

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ jobs:
103103
JRELEASER_GPG_PASSPHRASE: ${{ secrets.JRELEASER_GPG_PASSPHRASE }}
104104
JRELEASER_GPG_PUBLIC_KEY: ${{ secrets.JRELEASER_GPG_PUBLIC_KEY }}
105105
JRELEASER_GPG_SECRET_KEY: ${{ secrets.JRELEASER_GPG_SECRET_KEY }}
106+
JRELEASER_DISCORD_WEBHOOK: ${{ secrets.RELEASES_DISCORD_WEBHOOK }}
106107
JRELEASER_DRY_RUN: ${{ inputs.dryrun }}
107108
run: |
108109
echo "Releasing version ${{ env.PREVIOUS_VERSION }} -> ${{ env.CURRENT_VERSION }}"

build.gradle.kts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,15 @@ jreleaser {
8181
}
8282

8383
announce {
84-
active = org.jreleaser.model.Active.ALWAYS
84+
discord {
85+
active = org.jreleaser.model.Active.RELEASE
86+
}
8587

8688
discussions {
89+
active = org.jreleaser.model.Active.RELEASE
8790
organization = "docling-project"
8891
team = "docling-java"
8992
title = "{{projectNameCapitalized}} {{projectVersion}} released!"
90-
message = "🚀 {{projectNameCapitalized}} {{projectVersion}} has been released! {{releaseNotesUrl}}"
9193
}
9294
}
9395
}

0 commit comments

Comments
 (0)