Skip to content

Commit 369194c

Browse files
chore: add gh release to workflow (#110)
1 parent 5049dc1 commit 369194c

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/test-and-deploy.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929

3030
- name: Build & Test
3131
run: make install test-install test
32-
32+
3333
deploy:
3434
name: Deploy
3535
if: success() && github.ref_type == 'tag'
@@ -51,12 +51,19 @@ jobs:
5151
pip install wheel
5252
python setup.py sdist bdist_wheel
5353
54+
- name: Create GitHub Release
55+
uses: sendgrid/dx-automator/actions/release@main
56+
with:
57+
footer: '**[pypi](https://pypi.org/project/smtpapi/${version})**'
58+
env:
59+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
60+
5461
- name: Publish package to PyPI
5562
uses: pypa/gh-action-pypi-publish@release/v1
5663
with:
5764
user: __token__
5865
password: ${{ secrets.PYPI_TOKEN }}
59-
66+
6067
notify-on-failure:
6168
name: Slack notify on failure
6269
if: failure() && github.event_name != 'pull_request' && (github.ref == 'refs/heads/main' || github.ref_type == 'tag')

0 commit comments

Comments
 (0)