From c7107aae1d65f0809033cb93d4c7df727fb440f2 Mon Sep 17 00:00:00 2001 From: Viginum-DataScientist-6 <210390336+Viginum-DataScientist-6@users.noreply.github.com> Date: Tue, 29 Jul 2025 13:04:13 +0000 Subject: [PATCH] fix: disable automatic releases to test.pypi.org [test.]pypi.org reject uploads of distributions with an already existing version number. Publishing to testpypi on every commit therefore does not work in the current versioning setup since it leads to duplicate release versions. --- .github/workflows/publish-to-pypi.yml | 28 ++------------------------- 1 file changed, 2 insertions(+), 26 deletions(-) diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml index cc1df83..d110825 100644 --- a/.github/workflows/publish-to-pypi.yml +++ b/.github/workflows/publish-to-pypi.yml @@ -1,5 +1,5 @@ # derived from https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/#the-whole-ci-cd-workflow -name: Publish Python 🐍 distribution 📦 to PyPI and TestPyPI +name: Publish Python 🐍 distribution 📦 to PyPI on: push @@ -115,28 +115,4 @@ jobs: run: >- gh release upload "$GITHUB_REF_NAME" dist/** - --repo "$GITHUB_REPOSITORY" - - publish-to-testpypi: - name: Publish Python 🐍 distribution 📦 to TestPyPI - needs: - - build - runs-on: ubuntu-latest - - environment: - name: testpypi - url: https://test.pypi.org/p/d3lta # pypi is case insensitive so d3lta == D3lta - - permissions: - id-token: write # IMPORTANT: mandatory for trusted publishing - - steps: - - name: Download all the dists - uses: actions/download-artifact@v4 - with: - name: python-package-distributions - path: dist/ - - name: Publish distribution 📦 to TestPyPI - uses: pypa/gh-action-pypi-publish@release/v1 - with: - repository-url: https://test.pypi.org/legacy/ + --repo "$GITHUB_REPOSITORY" \ No newline at end of file