diff --git a/.github/workflows/pypi-release.yaml b/.github/workflows/pypi-release.yaml index 297968f693d..b9d47840967 100644 --- a/.github/workflows/pypi-release.yaml +++ b/.github/workflows/pypi-release.yaml @@ -4,8 +4,8 @@ on: types: - published push: - branches: - - master + tags: + - 'v*' jobs: build-artifacts: @@ -63,7 +63,7 @@ jobs: ls -ltrh ls -ltrh dist - name: Publish package to TestPyPI - if: github.event_name == 'push' || startsWith(github.event.ref, 'refs/tags/v') + if: github.event_name == 'push' uses: pypa/gh-action-pypi-publish@v1.4.2 with: user: __token__ @@ -72,7 +72,7 @@ jobs: verbose: true - name: Check uploaded package - if: github.event_name == 'push' || startsWith(github.event.ref, 'refs/tags/v') + if: github.event_name == 'push' run: | sleep 3 python -m pip install --upgrade pip