Skip to content

Commit 44d3074

Browse files
committed
test again
1 parent b1b94ba commit 44d3074

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ jobs:
1111
- uses: actions/checkout@v4
1212
with:
1313
persist-credentials: false
14+
fetch-depth: 0 # Fetch full history for proper versioning
1415
- name: Set up Python
1516
uses: actions/setup-python@v5
1617
with:
@@ -54,6 +55,8 @@ jobs:
5455

5556
publish-to-testpypi:
5657
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'
5760
needs:
5861
- build
5962
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)