We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c5dbacf + 4113936 commit 6eacfa6Copy full SHA for 6eacfa6
.github/workflows/build.yml
@@ -46,6 +46,14 @@ jobs:
46
run: |
47
python setup.py sdist bdist_wheel
48
49
+ - name: Check if version exists on PyPI
50
+ run: |
51
+ VERSION=$(python setup.py --version)
52
+ if twine check dist/* | grep -q "This version already exists on PyPI"; then
53
+ echo "Version $VERSION already exists on PyPI. Skipping upload."
54
+ exit 0
55
+ fi
56
+
57
- name: Upload package to PyPI
58
env:
59
TWINE_USERNAME: __token__
0 commit comments