Skip to content

Commit c26e5c0

Browse files
committed
CI: stop trying to publish to TestPyPI (breaks releasing to PyPI)
1 parent f2e9089 commit c26e5c0

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

.github/workflows/publish-package.yml

+13-13
Original file line numberDiff line numberDiff line change
@@ -88,25 +88,25 @@ jobs:
8888
- name: List all files
8989
run: ls -lh dist
9090

91-
- name: Publish distribution 📦 to Test PyPI
92-
# Publish to TestPyPI on tag events of if manually triggered
93-
# Compare to 'true' string as booleans get turned into strings in the console
94-
if: >-
95-
(github.event_name == 'push' && startsWith(github.ref, 'refs/tags'))
96-
|| (github.event_name == 'workflow_dispatch' && github.event.inputs.publish == 'true')
91+
# - name: Publish distribution 📦 to Test PyPI
92+
# # Publish to TestPyPI on tag events of if manually triggered
93+
# # Compare to 'true' string as booleans get turned into strings in the console
94+
# if: >-
95+
# (github.event_name == 'push' && startsWith(github.ref, 'refs/tags'))
96+
# || (github.event_name == 'workflow_dispatch' && github.event.inputs.publish == 'true')
97+
# uses: pypa/[email protected]
98+
# with:
99+
# repository-url: https://test.pypi.org/legacy/
100+
# print-hash: true
101+
102+
- name: Publish distribution 📦 to PyPI
103+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
97104
uses: pypa/[email protected]
98105
with:
99-
repository-url: https://test.pypi.org/legacy/
100106
print-hash: true
101107

102108
- name: Create GitHub Release from a Tag
103109
uses: softprops/action-gh-release@v2
104110
if: startsWith(github.ref, 'refs/tags/')
105111
with:
106112
files: dist/*
107-
108-
- name: Publish distribution 📦 to PyPI
109-
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
110-
uses: pypa/[email protected]
111-
with:
112-
print-hash: true

0 commit comments

Comments
 (0)