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 f0c61d4 commit 43d56b8Copy full SHA for 43d56b8
.github/workflows/release.yml
@@ -1,6 +1,11 @@
1
name: Publish Python 🐍 distribution 📦 to PyPI and TestPyPI
2
3
-on: push
+on:
4
+ push:
5
+ # For the main branch only.
6
+ branches:
7
+ - main
8
+ workflow_dispatch:
9
10
env:
11
PYPI_URL: https://pypi.org/p/django-debug-toolbar
@@ -95,7 +100,7 @@ jobs:
95
100
96
101
publish-to-testpypi:
97
102
name: Publish Python 🐍 distribution 📦 to TestPyPI
98
- if: startsWith(github.ref, 'refs/tags/') # only publish to TestPyPI on tag pushes
103
+ # Always publish to TestPyPI on every push to main.
99
104
needs:
105
- build
106
runs-on: ubuntu-latest
0 commit comments