From 7c4142e7f106407342fe5a1cfb49e9d8b6a21fd6 Mon Sep 17 00:00:00 2001 From: hakim Date: Thu, 15 Dec 2022 15:15:26 +0100 Subject: [PATCH] update: automaticaly publish on release --- .github/workflows/package-publish.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/package-publish.yml b/.github/workflows/package-publish.yml index c1d8f3b..512bc40 100644 --- a/.github/workflows/package-publish.yml +++ b/.github/workflows/package-publish.yml @@ -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' }} \ No newline at end of file + if: ${{ github.event.inputs.pypi_repo == 'pypi' || github.event_name == 'release' }} \ No newline at end of file