Skip to content

Commit

Permalink
update: automaticaly publish on release
Browse files Browse the repository at this point in the history
  • Loading branch information
h4c5 committed Dec 15, 2022
1 parent 3456053 commit 7c4142e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/package-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ jobs:
user: __token__
password: ${{ secrets.TEST_PYPI_TOKEN }}
repository_url: https://test.pypi.org/legacy/
if: ${{ github.event.inputs.pypi_repo == 'testpypi' }}
if: ${{ github.event.inputs.pypi_repo != 'pypi' }}

- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}
if: ${{ github.event.inputs.pypi_repo == 'pypi' }}
if: ${{ github.event.inputs.pypi_repo == 'pypi' || github.event_name == 'release' }}

0 comments on commit 7c4142e

Please # to comment.