From 3576591e08205b2c94b03dfee06b1b59dcbcf749 Mon Sep 17 00:00:00 2001 From: Andrew Port Date: Tue, 9 Nov 2021 20:26:36 -0800 Subject: [PATCH] Publish now on any v* tag pushed to PyPI branch --- .github/workflows/publish-on-pypi.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 }}