Skip to content

Commit d942b8d

Browse files
author
BotReleaser
committed
Send success slack notif after publishing to pypi
1 parent d1211af commit d942b8d

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

.github/workflows/post-release.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -101,17 +101,19 @@ jobs:
101101
dist/giskard-*.tar.gz
102102
dist/giskard-*.whl
103103
104-
- name: Post to a Slack channel
104+
- name: Push to Pipy
105+
run: pdm publish --no-build --username "${{ secrets.PIPY_USERNAME }}" --password "${{ secrets.PIPY_PASSWORD }}"
106+
107+
- name: Post Slack message
105108
id: slack
106109
uses: slackapi/slack-github-action@v1.24.0
107110
with:
108111
# Slack channel id, channel name, or user id to post message.
109112
# See also: https://api.slack.com/methods/chat.postMessage#channels
110-
channel-id: 'C02Q2772VEH'
111-
slack-message: "@channel New release: ${{ github.ref_name }} is being made !:tada:\nRelease notes there: ${{ steps.github-release.outputs.url }}"
113+
channel-id: ${{ secrets.SLACK_CHANNEL_ID }}
114+
slack-message: |
115+
@channel New library release: ${{ env.VERSION_NAME }} :tada:
116+
[Release notes](${{ steps.github-release.outputs.url }}) | [PyPI](https://pypi.org/project/giskard/${{ env.VERSION_NUMBER }})
112117
# For posting a rich message using Block Kit
113118
env:
114119
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
115-
116-
- name: Push to Pipy
117-
run: pdm publish --no-build --username "${{ secrets.PIPY_USERNAME }}" --password "${{ secrets.PIPY_PASSWORD }}"

0 commit comments

Comments
 (0)