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 b1b94ba commit 44d3074Copy full SHA for 44d3074
.github/workflows/release.yml
@@ -11,6 +11,7 @@ jobs:
11
- uses: actions/checkout@v4
12
with:
13
persist-credentials: false
14
+ fetch-depth: 0 # Fetch full history for proper versioning
15
- name: Set up Python
16
uses: actions/setup-python@v5
17
@@ -54,6 +55,8 @@ jobs:
54
55
56
publish-to-testpypi:
57
name: Publish Python 🐍 distribution 📦 to TestPyPI
58
+ # Only publish to TestPyPI on main/develop branches or PRs, not on local dev commits
59
+ if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/develop' || github.event_name == 'pull_request'
60
needs:
61
- build
62
runs-on: ubuntu-latest
0 commit comments