no test pypi in master
This commit is contained in:
parent
dddda8940c
commit
5e4c1811ae
1 changed files with 2 additions and 1 deletions
3
.github/workflows/pypi.yaml
vendored
3
.github/workflows/pypi.yaml
vendored
|
|
@ -33,13 +33,14 @@ jobs:
|
||||||
make wheel
|
make wheel
|
||||||
|
|
||||||
- name: Publish distribution 📦 to Test PyPI
|
- name: Publish distribution 📦 to Test PyPI
|
||||||
|
if: ${{ github.ref != 'refs/heads/master' }}
|
||||||
uses: pypa/gh-action-pypi-publish@release/v1
|
uses: pypa/gh-action-pypi-publish@release/v1
|
||||||
with:
|
with:
|
||||||
password: ${{ secrets.PYPI_TEST_API_TOKEN }}
|
password: ${{ secrets.PYPI_TEST_API_TOKEN }}
|
||||||
repository_url: https://test.pypi.org/legacy/
|
repository_url: https://test.pypi.org/legacy/
|
||||||
|
|
||||||
- name: Publish distribution 📦 to PyPI
|
- 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
|
uses: pypa/gh-action-pypi-publish@release/v1
|
||||||
with:
|
with:
|
||||||
password: ${{ secrets.PYPI_API_TOKEN }}
|
password: ${{ secrets.PYPI_API_TOKEN }}
|
||||||
Loading…
Reference in a new issue