Skip to content

Commit

Permalink
Reverting back to tags GHA trigger.
Browse files Browse the repository at this point in the history
I forgot that limiting to pushes on the main branch
would exclude pushes to tags.
  • Loading branch information
tim-schilling committed Jan 14, 2025
1 parent b6ae021 commit 345b760
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 345b760

Please sign in to comment.