Skip to content

Commit

Permalink
Don't upload tagged releases to test pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
mdshw5 committed Jul 26, 2022
1 parent 00e62b8 commit f4abe57
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/pypi.yml
Expand Up @@ -25,12 +25,13 @@ jobs:
run: python setup.py sdist

- name: Publish to test PyPI
if: startsWith(github.ref, 'refs/tags') != true
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.test_pypi_password }}
repository_url: https://test.pypi.org/legacy/

- name: Publish to tagged release to PyPI
- name: Publish tagged release to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
Expand Down

0 comments on commit f4abe57

Please sign in to comment.