From a07ecc427ab924e32f8a2305d4be7193e5125614 Mon Sep 17 00:00:00 2001 From: ssolson Date: Fri, 11 Aug 2023 12:50:09 -0600 Subject: [PATCH] Auto Publish to PyPi Failed (#259) * no test pypi on publish --- .github/workflows/pypi.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml index 91fcaf119..239b3fa1d 100644 --- a/.github/workflows/pypi.yml +++ b/.github/workflows/pypi.yml @@ -28,12 +28,13 @@ jobs: - run: python -m build --sdist --wheel --outdir dist/ . - name: Upload to Test PyPI - if: github.repository_owner == 'MHKiT-Software' + if: github.event_name != 'release' && github.repository_owner == 'MHKiT-Software' uses: pypa/gh-action-pypi-publish@release/v1 with: user: __token__ password: ${{ secrets.TEST_PYPI_API_TOKEN }} repository-url: https://test.pypi.org/legacy/ + skip-existing: true - name: Upload to PyPI (tagged release only) if: