diff --git a/.github/workflows/publish-on-pypi.yml b/.github/workflows/publish-on-pypi.yml index 85495d4..c876bc3 100644 --- a/.github/workflows/publish-on-pypi.yml +++ b/.github/workflows/publish-on-pypi.yml @@ -2,7 +2,11 @@ name: Publish to TestPyPI and if new version PyPI on: push: - branches: [ master ] + branches: + - PyPI + tags: + - 'v*' + jobs: build-n-publish: name: Build and publish to TestPyPI and PyPI @@ -37,4 +41,4 @@ jobs: if: startsWith(github.ref, 'refs/tags') uses: pypa/gh-action-pypi-publish@master with: - password: ${{ secrets.PYPI_API_TOKEN }} \ No newline at end of file + password: ${{ secrets.PYPI_API_TOKEN }}