Skip to content

Commit

Permalink
Repair PyPi publish action
Browse files Browse the repository at this point in the history
  • Loading branch information
henrykironde committed Apr 26, 2022
1 parent cc841ad commit c9daaeb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/publish-to-test-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,14 @@ jobs:
.
- name: Publish distribution 📦 to Test PyPI
if: github.event_name == 'pull_request'
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/

- name: Publish distribution 📦 to PyPI
if: startsWith(github.ref, 'refs/tags')
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit c9daaeb

Please sign in to comment.