Skip to content

Commit

Permalink
Auto Publish to PyPi Failed (MHKiT-Software#259)
Browse files Browse the repository at this point in the history
* no test pypi on publish
  • Loading branch information
ssolson authored Aug 11, 2023
1 parent 48af23a commit a07ecc4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit a07ecc4

Please sign in to comment.