Skip to content

Commit f585d99

Browse files
authored
try zulip notif (ipython#15063)
2 parents 2a6e1b2 + 29f575f commit f585d99

2 files changed

Lines changed: 40 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,17 @@ jobs:
6363
- name: Publish distribution to PyPI
6464
if: startsWith(github.ref, 'refs/tags/')
6565
uses: pypa/gh-action-pypi-publish@v1.13.0
66+
67+
- name: Send Zulip notification
68+
if: startsWith(github.ref, 'refs/tags/')
69+
uses: zulip/github-actions-zulip/send-message@v1
70+
with:
71+
api-key: ${{ secrets.ZULIP_API_KEY }}
72+
email: ${{ secrets.ZULIP_EMAIL }}
73+
organization-url: ${{ vars.ZULIP_ORGANIZATION_URL }}
74+
to: 'Releases'
75+
type: 'stream'
76+
topic: 'IPython'
77+
content: |
78+
IPython ${{ github.ref_name }} was just released on PyPI! 🎉
79+
https://pypi.org/project/ipython/${{ github.ref_name }}/

.github/workflows/zulip.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Post message to Zulip
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
post-message:
8+
name: Post Message to Zulip
9+
runs-on: ubuntu-latest
10+
environment:
11+
name: pypi
12+
13+
steps:
14+
15+
- name: Send Zulip notification
16+
if: startsWith(github.ref, 'refs/tags/')
17+
uses: zulip/github-actions-zulip/send-message@v1
18+
with:
19+
api-key: ${{ secrets.ZULIP_API_KEY }}
20+
email: ${{ secrets.ZULIP_EMAIL }}
21+
organization-url: ${{ vars.ZULIP_ORGANIZATION_URL }}
22+
to: 'Releases'
23+
type: 'stream'
24+
topic: 'IPython'
25+
content: |
26+
Test Auto release notification of IPython from GitHub action

0 commit comments

Comments
 (0)