Skip to content

Commit 404e8ac

Browse files
authored
Update publish-to-test-pypi-and-pypi.yaml
1 parent d457506 commit 404e8ac

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/publish-to-test-pypi-and-pypi.yaml

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ on:
33
workflow_dispatch:
44

55
push:
6+
tags:
7+
- '*'
68
paths-ignore:
79
- 'README.md'
810
- '.gitignore'
@@ -44,7 +46,7 @@ jobs:
4446
repository_url: https://test.pypi.org/legacy/
4547

4648
- name: Publish distribution 📦 to PyPI
47-
if: startsWith(github.ref, 'refs/tags')
49+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
4850
uses: pypa/gh-action-pypi-publish@release/v1
4951
with:
5052
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)