Skip to content

Commit 998ec15

Browse files
committed
Publishing to PyPI only on new tag
1 parent 9e4a358 commit 998ec15

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ name: Publish to PyPI
22

33
on:
44
push:
5-
branches:
6-
- master
5+
tags:
6+
- "*"
77

88
jobs:
99
build-n-publish:
@@ -22,7 +22,6 @@ jobs:
2222
run: >-
2323
python setup.py sdist
2424
- name: Publish distribution 📦 to PyPI
25-
if: startsWith(github.ref, 'refs/tags')
2625
uses: pypa/gh-action-pypi-publish@master
2726
with:
2827
password: ${{ secrets.pypi_password }}

0 commit comments

Comments
 (0)