Skip to content

Commit b61acb7

Browse files
authored
PYTHON-5047 Fix handling of testpypi (#268)
1 parent 2067c88 commit b61acb7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/release-python.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,11 +159,12 @@ jobs:
159159
with:
160160
name: all-dist-${{ github.run_id }}
161161
path: dist/
162-
- name: Publish distribution 📦 to PyPI
163-
if: startsWith(github.ref, 'refs/tags/')
164-
uses: pypa/gh-action-pypi-publish@release/v1
165162
- name: Publish package distributions to TestPyPI
166163
uses: pypa/gh-action-pypi-publish@release/v1
167164
with:
168165
repository-url: https://test.pypi.org/legacy/
169166
skip-existing: true
167+
attestations: ${{ !startsWith(github.ref, 'refs/tags/') }}
168+
- name: Publish distribution 📦 to PyPI
169+
if: startsWith(github.ref, 'refs/tags/')
170+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)