@@ -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/gh-action-pypi-publish@v1.5.1
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/slack-github-action@v1.25.0
57+ with :
58+ channel-id : ' C012YFE3D6D'
59+ slack-message : " core-lib-python release has been triggered!"
60+ env :
61+ SLACK_BOT_TOKEN : ${{ secrets.SLACK_BOT_TOKEN }}
0 commit comments