Skip to content

Commit 1f4dfdb

Browse files
authored
fix publish.yml
1 parent 1533bb7 commit 1f4dfdb

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/publish.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ jobs:
5353

5454
publish-to-testpypi:
5555
name: Publish Python 🐍 distribution 📦 to TestPyPI
56+
if: startsWith(github.ref, 'refs/tags/')
5657
needs:
5758
- build
5859
runs-on: ubuntu-latest
@@ -73,4 +74,4 @@ jobs:
7374
- name: Publish distribution 📦 to TestPyPI
7475
uses: pypa/gh-action-pypi-publish@release/v1
7576
with:
76-
repository-url: https://test.pypi.org/legacy/
77+
repository-url: https://test.pypi.org/legacy/

0 commit comments

Comments
 (0)