From 31be92ed4189a981c0140496b69b54c9e268b194 Mon Sep 17 00:00:00 2001 From: Robert Stein Date: Tue, 28 May 2024 14:19:19 -0700 Subject: [PATCH] fix pypi --- .github/workflows/continuous_integration.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/continuous_integration.yml b/.github/workflows/continuous_integration.yml index 5d85e19..887e0d5 100644 --- a/.github/workflows/continuous_integration.yml +++ b/.github/workflows/continuous_integration.yml @@ -57,7 +57,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Echo tag name - run: echo "Tag is ${{ github.ref }}, Deploy is ${{ startsWith(github.ref, 'refs/tags/') && matrix.python-version == 3.9}}" + run: echo "Tag is ${{ github.ref }}, Tagged is ${{ startsWith(github.ref, 'refs/tags/')}}, Python Check is ${{matrix.python-version == 3.11}}, Deploy is ${{ startsWith(github.ref, 'refs/tags/') && matrix.python-version == 3.11}}" - name: Install pypa/build run: >- @@ -76,7 +76,7 @@ jobs: . - name: Publish distribution 📦 to PyPI - if: ${{ startsWith(github.ref, 'refs/tags/') && success() && matrix.python-version == 3.9}} + if: ${{ startsWith(github.ref, 'refs/tags/') && success() && matrix.python-version == 3.11 && github.event_name == 'push'}} uses: pypa/gh-action-pypi-publish@master with: password: ${{ secrets.PYPI_API_TOKEN }}