Skip to content

Commit

Permalink
Do not use testpypi, as it requires new version number on each commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianKarlBauer committed Dec 31, 2021
1 parent 4d16f5d commit 8cc9817
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/publish_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on: push

jobs:
build-n-publish:
if: startsWith(github.ref, 'refs/tags')

name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI
runs-on: ubuntu-20.04

Expand All @@ -22,14 +24,13 @@ jobs:
run: >-
python setup.py sdist bdist_wheel
- name: Publish distribution 📦 to Test PyPI
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.PYPI_TEST_API }}
repository_url: https://test.pypi.org/legacy/
# - name: Publish distribution 📦 to Test PyPI
# uses: pypa/gh-action-pypi-publish@master
# with:
# password: ${{ secrets.PYPI_TEST_API }}
# repository_url: https://test.pypi.org/legacy/

- name: Publish distribution 📦 to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.PYPI_API }}

0 comments on commit 8cc9817

Please sign in to comment.