1 parent a3298c3 commit 4a01085Copy full SHA for 4a01085
1 file changed
.github/workflows/publish-to-pypi.yml
@@ -61,7 +61,15 @@ jobs:
61
name: python-package-distributions
62
path: dist/
63
64
+ - name: Test the package name for a dev sign
65
+ id: test-package-name
66
+ run: |
67
+ echo "devs=$(find dist -iname "*.dev*" -exec echo {} +)" | tee -a "${GITHUB_OUTPUT}"
68
+ shell: bash
69
+
70
- name: Publish to PyPI
71
+ # don't publish if it's a dev release
72
+ if: steps.test-package-name.outputs.devs == ''
73
uses: pypa/gh-action-pypi-publish@release/v1
74
75
publish-to-testpypi:
@@ -87,4 +95,5 @@ jobs:
87
95
- name: Publish to TestPyPI
88
96
89
97
with:
98
+ skip-existing: true
90
99
repository-url: https://test.pypi.org/legacy/
0 commit comments