diff --git a/.github/workflows/default.yml b/.github/workflows/default.yml index 23e5c43..651c517 100644 --- a/.github/workflows/default.yml +++ b/.github/workflows/default.yml @@ -68,7 +68,7 @@ jobs: publish-wheel: runs-on: ubuntu-latest - if: ${{github.event_name == 'push'}} + if: github.event.action == 'create' needs: - linters - pytest @@ -87,5 +87,5 @@ jobs: $POETRY_HOME/bin/poetry --version - name: Build and publish run: | - $POETRY_HOME/bin/poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }} + $POETRY_HOME/bin/poetry config pypi-token.pypi ${{ env.PYPI_TOKEN }} $POETRY_HOME/bin/poetry publish --build