From 3e609a80863502b1a22c8092d0f4536006acf16e Mon Sep 17 00:00:00 2001 From: Jeremy Seibert Date: Mon, 3 Jun 2024 19:09:30 -0500 Subject: [PATCH] Update python-publish.yml --- .github/workflows/python-publish.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 9af88fe..dd73f31 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -2,11 +2,12 @@ name: Upload QualtricsAPI to PyPi -on: push +on: + release: + types: [created] jobs: deploy: - runs-on: ubuntu-latest steps: @@ -21,8 +22,9 @@ jobs: pip install setuptools wheel twine - name: Build and publish env: - TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} - TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + TWINE_USERNAME: __token__ + TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} run: | python setup.py sdist bdist_wheel twine upload dist/* --verbose +