From 86a53b351d67193bf4a9592c8a9e83bda1997523 Mon Sep 17 00:00:00 2001 From: Austin Gibbons <79466943+agibbons27@users.noreply.github.com> Date: Tue, 25 Jun 2024 10:15:44 -0400 Subject: [PATCH] Update thumbtack_workflow.yml Update workflow file to work with pypi trusted publisher --- .github/workflows/thumbtack_workflow.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/thumbtack_workflow.yml b/.github/workflows/thumbtack_workflow.yml index f0d93bf..ea7f5b3 100644 --- a/.github/workflows/thumbtack_workflow.yml +++ b/.github/workflows/thumbtack_workflow.yml @@ -56,11 +56,8 @@ jobs: - name: Build wheel run: sudo pip install wheel && sudo python setup.py sdist bdist_wheel - name: Push to PyPI - if: startsWith(github.ref, 'refs/tags') + if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') uses: pypa/gh-action-pypi-publish@release/v1 - with: - user: ${{ secrets.PYPI_USERNAME }} - password: ${{ secrets.PYPI_TOKEN_THUMBTACK }} docker-image: needs: deploy runs-on: ubuntu-20.04