Skip to content

Commit 0b5d8c3

Browse files
authored
add slack status for publishing (#44)
1 parent 4050f2a commit 0b5d8c3

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/publish-pypi.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,15 @@ jobs:
2929
bash ./bin/publish-pypi
3030
env:
3131
PYPI_TOKEN: ${{ secrets.PREM_AI_PYPI_TOKEN || secrets.PYPI_TOKEN }}
32+
33+
- name: Notify Slack on Release Success
34+
if: success()
35+
shell: bash
36+
run: |
37+
curl -X POST --data '{"text":"✅ Studio PyPI SDK Deployed Successfully"}' ${{ secrets.SLACK_DEV_PLATFORM_WEBHOOK_URL }}
38+
39+
- name: Notify Slack on Release Failure
40+
if: failure()
41+
shell: bash
42+
run: |
43+
curl -X POST --data '{"text":"❌ Studio PyPI SDK Deployed Failed"}' ${{ secrets.SLACK_DEV_PLATFORM_WEBHOOK_URL }}

0 commit comments

Comments
 (0)