Skip to content

Commit 392b317

Browse files
committed
pypi instead of testpypi
1 parent c05b50c commit 392b317

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

.github/workflows/cross_platform_tests.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Cross-Platform Tests
22

33
on:
44
push:
5-
branches: [ main, master, test-pypi-publish ]
5+
branches: [ main, master ]
66
tags:
77
- 'v*.*.*' # Also trigger on tags like v1.0.0, v1.2.3
88
pull_request:
@@ -130,12 +130,12 @@ jobs:
130130
name: all-wheels
131131
path: dist/*.whl
132132

133-
publish_to_test_pypi:
134-
name: Publish Python distributions to TestPyPI
133+
publish_to_pypi:
134+
name: Publish Python distributions to PyPI
135135
needs: collect_wheels
136136
runs-on: ubuntu-latest
137-
# Trigger on test-pypi-publish branch OR manual workflow dispatch
138-
if: github.ref == 'refs/heads/test-pypi-publish' || github.event_name == 'workflow_dispatch'
137+
# Trigger on tags (releases) OR manual workflow dispatch
138+
if: startsWith(github.ref, 'refs/tags/v') || github.event_name == 'workflow_dispatch'
139139
permissions:
140140
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
141141

@@ -155,9 +155,7 @@ jobs:
155155
echo "Wheel file details:"
156156
find dist -name "*.whl" -type f -exec basename {} \;
157157
158-
- name: Publish to TestPyPI
159-
uses: pypa/gh-action-pypi-publish@release/v1
160-
with:
161-
repository_url: https://test.pypi.org/legacy/
158+
- name: Publish to PyPI
159+
uses: pypa/gh-action-pypi-publish@release/v1
162160

163161

0 commit comments

Comments
 (0)