no test pypi in master

This commit is contained in:
Jesse Bannon 2023-02-20 16:24:02 -08:00
parent dddda8940c
commit 5e4c1811ae

View file

@ -33,13 +33,14 @@ jobs:
make wheel
- name: Publish distribution 📦 to Test PyPI
if: ${{ github.ref != 'refs/heads/master' }}
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_TEST_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/
- name: Publish distribution 📦 to PyPI
if: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v') }}
if: ${{ github.ref == 'refs/heads/master' }}
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}