We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6ae021 commit 345b760Copy full SHA for 345b760
.github/workflows/release.yml
@@ -1,10 +1,6 @@
1
name: Publish Python 🐍 distribution 📦 to PyPI and TestPyPI
2
3
-on:
4
- push:
5
- # For the main branch only.
6
- branches:
7
- - main
+on: push
8
9
env:
10
PYPI_URL: https://pypi.org/p/django-debug-toolbar
@@ -99,7 +95,7 @@ jobs:
99
95
100
96
publish-to-testpypi:
101
97
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
103
needs:
104
- build
105
runs-on: ubuntu-latest
0 commit comments