From 0a2db43699a1bfa6434ed117331972e064887102 Mon Sep 17 00:00:00 2001 From: Artemy Pozdnyakov Date: Mon, 10 Jun 2024 16:45:57 +0300 Subject: [PATCH] Revert "[FIX-3] Fix whl publish and access through secrets var (#6)" This reverts commit bcf504b0c7fb8ed114b21906676d68fa03676e8b. --- .github/workflows/default.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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