Skip to content

Commit

Permalink
Support pushing to test pypi on every push.
Browse files Browse the repository at this point in the history
This tests the build and deployment process much more often.
  • Loading branch information
tim-schilling committed Jan 14, 2025
1 parent f0c61d4 commit 43d56b8
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
name: Publish Python 🐍 distribution 📦 to PyPI and TestPyPI

on: push
on:
push:
# For the main branch only.
branches:
- main
workflow_dispatch:

env:
PYPI_URL: https://pypi.org/p/django-debug-toolbar
Expand Down Expand Up @@ -95,7 +100,7 @@ jobs:
publish-to-testpypi:
name: Publish Python 🐍 distribution 📦 to TestPyPI
if: startsWith(github.ref, 'refs/tags/') # only publish to TestPyPI on tag pushes
# Always publish to TestPyPI on every push to main.
needs:
- build
runs-on: ubuntu-latest
Expand Down

0 comments on commit 43d56b8

Please sign in to comment.