From 8cc98179f5bfd6ecf79f44dc09102a0bd7cd5708 Mon Sep 17 00:00:00 2001 From: Julian Karl Bauer Date: Fri, 31 Dec 2021 17:16:10 +0100 Subject: [PATCH] Do not use testpypi, as it requires new version number on each commit. --- .github/workflows/publish_pypi.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish_pypi.yml b/.github/workflows/publish_pypi.yml index bf93eac..e608f64 100644 --- a/.github/workflows/publish_pypi.yml +++ b/.github/workflows/publish_pypi.yml @@ -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 @@ -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 }} \ No newline at end of file