Skip to content

Commit 345b760

Browse files
committed
Reverting back to tags GHA trigger.
I forgot that limiting to pushes on the main branch would exclude pushes to tags.
1 parent b6ae021 commit 345b760

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

.github/workflows/release.yml

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
name: Publish Python 🐍 distribution 📦 to PyPI and TestPyPI
22

3-
on:
4-
push:
5-
# For the main branch only.
6-
branches:
7-
- main
3+
on: push
84

95
env:
106
PYPI_URL: https://pypi.org/p/django-debug-toolbar
@@ -99,7 +95,7 @@ jobs:
9995
10096
publish-to-testpypi:
10197
name: Publish Python 🐍 distribution 📦 to TestPyPI
102-
# Always publish to TestPyPI on every push to main.
98+
if: startsWith(github.ref, 'refs/tags/') # only publish to Test PyPI on tag pushes
10399
needs:
104100
- build
105101
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)