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 +