From 39bbb42261d23e19d4e6d9ebef61b29eef3bc8c8 Mon Sep 17 00:00:00 2001 From: Paul Hobson Date: Tue, 8 Oct 2024 09:06:41 -0700 Subject: [PATCH] add debug options to publish workflows --- .github/workflows/python-publish-pypi.yml | 27 +++---------------- .github/workflows/python-publish-testpypi.yml | 3 +++ 2 files changed, 6 insertions(+), 24 deletions(-) diff --git a/.github/workflows/python-publish-pypi.yml b/.github/workflows/python-publish-pypi.yml index fd0d3ba..ee42a0c 100644 --- a/.github/workflows/python-publish-pypi.yml +++ b/.github/workflows/python-publish-pypi.yml @@ -48,6 +48,9 @@ jobs: path: dist/ - name: Publish distribution 📦 to PyPI uses: pypa/gh-action-pypi-publish@release/v1 + with: + skip-existing: true + verbose: true github-release: name: >- @@ -91,27 +94,3 @@ jobs: 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/wqio - - 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/ diff --git a/.github/workflows/python-publish-testpypi.yml b/.github/workflows/python-publish-testpypi.yml index d7b300d..69a8f8f 100644 --- a/.github/workflows/python-publish-testpypi.yml +++ b/.github/workflows/python-publish-testpypi.yml @@ -52,3 +52,6 @@ jobs: uses: pypa/gh-action-pypi-publish@release/v1 with: repository-url: https://test.pypi.org/legacy/ + skip-existing: true + verbose: true +