Skip to content

Commit a07ecc4

Browse files
authored
Auto Publish to PyPi Failed (#259)
* no test pypi on publish
1 parent 48af23a commit a07ecc4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/pypi.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,13 @@ jobs:
2828
- run: python -m build --sdist --wheel --outdir dist/ .
2929

3030
- name: Upload to Test PyPI
31-
if: github.repository_owner == 'MHKiT-Software'
31+
if: github.event_name != 'release' && github.repository_owner == 'MHKiT-Software'
3232
uses: pypa/gh-action-pypi-publish@release/v1
3333
with:
3434
user: __token__
3535
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
3636
repository-url: https://test.pypi.org/legacy/
37+
skip-existing: true
3738

3839
- name: Upload to PyPI (tagged release only)
3940
if:

0 commit comments

Comments
 (0)