From 345b760f75cf8a23f34eddf00adfa88688b4af00 Mon Sep 17 00:00:00 2001 From: Tim Schilling Date: Mon, 13 Jan 2025 20:31:15 -0600 Subject: [PATCH] Reverting back to tags GHA trigger. I forgot that limiting to pushes on the main branch would exclude pushes to tags. --- .github/workflows/release.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 822040674..97c00d947 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,10 +1,6 @@ name: Publish Python 🐍 distribution 📦 to PyPI and TestPyPI -on: - push: - # For the main branch only. - branches: - - main +on: push env: PYPI_URL: https://pypi.org/p/django-debug-toolbar @@ -99,7 +95,7 @@ jobs: publish-to-testpypi: name: Publish Python 🐍 distribution 📦 to TestPyPI - # Always publish to TestPyPI on every push to main. + if: startsWith(github.ref, 'refs/tags/') # only publish to Test PyPI on tag pushes needs: - build runs-on: ubuntu-latest