diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml index 4c74a8a4..629a06d5 100644 --- a/.github/workflows/deployment.yml +++ b/.github/workflows/deployment.yml @@ -4,8 +4,6 @@ on: push: branches: - "release/**" - tags: - - v* jobs: deployment: @@ -39,7 +37,7 @@ jobs: run: python setup.py sdist - name: Publish package to PyPI - if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') + if: ${{ github.ref == 'refs/heads/master' }} uses: pypa/gh-action-pypi-publish@release/v1 with: user: __token__