Skip to content

Commit 10feec5

Browse files
committed
ci: Post release notification to Slack
1 parent 27e547a commit 10feec5

File tree

1 file changed

+30
-1
lines changed

1 file changed

+30
-1
lines changed

.github/workflows/publish.yml

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Publish to Central
1+
name: Publish to Maven Central
22
on:
33
release:
44
types: [published]
@@ -33,3 +33,32 @@ jobs:
3333
MAVEN_PASSWORD: ${{ secrets.OSS_PASSWORD }}
3434
MAVEN_GPG_PASSPHRASE: ${{ secrets.SIGNING_PASSWORD }}
3535
run: mvn -e --no-transfer-progress --batch-mode deploy -P release-sign-artifacts
36+
notify-release:
37+
runs-on: ubuntu-latest
38+
name: Notify Release
39+
strategy:
40+
matrix:
41+
url: [SLACK_WEBHOOK_ASK_DEVREL_URL, SLACK_WEBHOOK_DEVREL_TOOLING_URL, SLACK_WEBHOOK_DEVREL_PRIVATE_URL]
42+
steps:
43+
- name: Send to Slack channels
44+
uses: slackapi/slack-github-action@79ad3a9d89410e5b0d961a0e7422f18c62c81bfb
45+
with:
46+
webhook: ${{ secrets[matrix.url]}}
47+
webhook-type: incoming-webhook
48+
errors: true
49+
payload: |
50+
blocks:
51+
- type: "header"
52+
text:
53+
type: "plain_text"
54+
text: ":initial_external_notification_sent: Kotlin Server SDK ${{ github.event.release.name }} has been released."
55+
- type: "section"
56+
text:
57+
type: "mrkdwn"
58+
text: "${{ github.event.release.body }}"
59+
emoji: true
60+
- type: "divider"
61+
- type: "section"
62+
text:
63+
type: "mrkdwn"
64+
text: "View the full change log <${{ github.event.release.html_url }}|here>."

0 commit comments

Comments
 (0)