Skip to content

Commit c9c22ed

Browse files
authored
ci: merge release notification action (#27)
1 parent 68e7838 commit c9c22ed

File tree

2 files changed

+14
-19
lines changed

2 files changed

+14
-19
lines changed

.github/workflows/publish.yml

+14
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,24 @@ jobs:
1616
contents: write
1717
steps:
1818
- uses: actions/checkout@v3
19+
1920
- name: Set up Python
2021
uses: actions/setup-python@v4
2122
with:
2223
python-version: "3.x"
24+
2325
- name: Build source and wheel distributions
2426
run: |
2527
python -m pip install --upgrade build twine
2628
python -m build
2729
twine check --strict dist/*
30+
2831
- name: Publish distribution to PyPI
2932
id: release
3033
uses: pypa/[email protected]
3134
with:
3235
password: ${{ secrets.PYPI_TOKEN }}
36+
3337
- name: Create tag
3438
if: steps.release.outputs.exit_code == 0
3539
id: tag_version
@@ -38,10 +42,20 @@ jobs:
3842
github_token: ${{ secrets.TAGS_TOKEN }}
3943
custom_tag: ${{ github.event.inputs.Version }}
4044
tag_prefix: ""
45+
4146
- name: Create changelog for the release
4247
if: steps.release.outputs.exit_code == 0
4348
uses: ncipollo/release-action@v1
4449
with:
4550
tag: ${{ steps.tag_version.outputs.new_tag }}
4651
name: Release Version ${{ github.event.inputs.Version }}
4752
body: ${{ steps.tag_version.outputs.changelog }}
53+
54+
- name: Send slack notification
55+
id: slack
56+
uses: slackapi/[email protected]
57+
with:
58+
channel-id: 'C012YFE3D6D'
59+
slack-message: "core-interfaces-python release has been triggered!"
60+
env:
61+
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}

.github/workflows/release-notification.yml

-19
This file was deleted.

0 commit comments

Comments
 (0)