Skip to content

Commit 43d56b8

Browse files
committed
Support pushing to test pypi on every push.
This tests the build and deployment process much more often.
1 parent f0c61d4 commit 43d56b8

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/release.yml

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

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

510
env:
611
PYPI_URL: https://pypi.org/p/django-debug-toolbar
@@ -95,7 +100,7 @@ jobs:
95100
96101
publish-to-testpypi:
97102
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.
99104
needs:
100105
- build
101106
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)