File tree 2 files changed +14
-19
lines changed
2 files changed +14
-19
lines changed Original file line number Diff line number Diff line change @@ -16,20 +16,24 @@ jobs:
16
16
contents : write
17
17
steps :
18
18
- uses : actions/checkout@v3
19
+
19
20
- name : Set up Python
20
21
uses : actions/setup-python@v4
21
22
with :
22
23
python-version : " 3.x"
24
+
23
25
- name : Build source and wheel distributions
24
26
run : |
25
27
python -m pip install --upgrade build twine
26
28
python -m build
27
29
twine check --strict dist/*
30
+
28
31
- name : Publish distribution to PyPI
29
32
id : release
30
33
31
34
with :
32
35
password : ${{ secrets.PYPI_TOKEN }}
36
+
33
37
- name : Create tag
34
38
if : steps.release.outputs.exit_code == 0
35
39
id : tag_version
@@ -38,10 +42,20 @@ jobs:
38
42
github_token : ${{ secrets.TAGS_TOKEN }}
39
43
custom_tag : ${{ github.event.inputs.Version }}
40
44
tag_prefix : " "
45
+
41
46
- name : Create changelog for the release
42
47
if : steps.release.outputs.exit_code == 0
43
48
uses : ncipollo/release-action@v1
44
49
with :
45
50
tag : ${{ steps.tag_version.outputs.new_tag }}
46
51
name : Release Version ${{ github.event.inputs.Version }}
47
52
body : ${{ steps.tag_version.outputs.changelog }}
53
+
54
+ - name : Send slack notification
55
+ id : slack
56
+
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 }}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments