Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 852a20f

Browse files
committedJul 6, 2021
GHA: fix release condition
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
1 parent 47f312e commit 852a20f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎.github/workflows/publish-to-test-pypi.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,13 @@ jobs:
3131
- name: twine check
3232
run: python -m twine check dist/*
3333
- name: Publish distribution 📦 to Test PyPI
34+
if: ${{ !startsWith(github.event.ref, 'refs/tags') }}
3435
uses: pypa/gh-action-pypi-publish@master
3536
with:
3637
password: ${{ secrets.testpypi_password }}
3738
repository_url: https://test.pypi.org/legacy/
3839
- name: Publish distribution 📦 to PyPI
39-
if: startsWith(github.event.ref, 'refs/tags')
40+
if: ${{ startsWith(github.event.ref, 'refs/tags') }}
4041
uses: pypa/gh-action-pypi-publish@master
4142
with:
4243
password: ${{ secrets.pypi_password }}

0 commit comments

Comments
 (0)
Please sign in to comment.