Skip to content

Commit 2603df0

Browse files
author
Jaipreet Singh
committed
Publish releases on tagged commits to master
1 parent 58991b7 commit 2603df0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/python-publish.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
# This workflows will upload a Python Package using Twine when a release is created
1+
# This workflows will upload a Python Package when a tagged commit is pushed to the master branch.
22
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
33

44
name: Upload Python Package
55

66
on:
7-
release:
8-
types: [created]
7+
push:
8+
branches:
9+
- master
910

1011
jobs:
1112
deploy:
@@ -24,11 +25,10 @@ jobs:
2425
pip install setuptools wheel
2526
- name: Build
2627
run: |
27-
python setup.py sdist bdist_wheel
28+
python setup.py sdist
2829
- name: Publish package
2930
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
3031
uses: pypa/gh-action-pypi-publish@master
3132
with:
3233
user: __token__
3334
password: ${{ secrets.PYPI_TOKEN }}
34-
repository_url: https://test.pypi.org/legacy/

0 commit comments

Comments
 (0)