From 43d56b8c859ee4538e64c92776a51f2a5b20dae5 Mon Sep 17 00:00:00 2001 From: Tim Schilling Date: Mon, 13 Jan 2025 19:46:40 -0600 Subject: [PATCH] Support pushing to test pypi on every push. This tests the build and deployment process much more often. --- .github/workflows/release.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c306ef95f..05ec49f35 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,6 +1,11 @@ name: Publish Python 🐍 distribution 📦 to PyPI and TestPyPI -on: push +on: + push: + # For the main branch only. + branches: + - main + workflow_dispatch: env: PYPI_URL: https://pypi.org/p/django-debug-toolbar @@ -95,7 +100,7 @@ jobs: publish-to-testpypi: name: Publish Python 🐍 distribution 📦 to TestPyPI - if: startsWith(github.ref, 'refs/tags/') # only publish to TestPyPI on tag pushes + # Always publish to TestPyPI on every push to main. needs: - build runs-on: ubuntu-latest