-
-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Only one sdist may be uploaded per release" with skip-existing enabled #201
Comments
Dunno. Maybe, this doesn't work for sdists somehow. FWIW, we correctly pass the CLI flag to Twine and it's Twine's job to do the skipping. We don't have any logic around this in the action itself — it's mostly just a wrapper. Also, I'd like to discourage people from using that toggle more vocally in README: #200. I consider it a dirty hack. It's best to structure your CI/CD so that double uploads are never attempted in the first place. Among other problems in your workflow:
Follow https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/, please. I'm closing this issue as there's nothing we can do here. Feel free to ask on the Twine tracker. |
Oh, |
以前は既に TestPyPI にアップロードされていたのに sdist だけスキップできなくなった理由は分からないが、いずれにせよ無視するのが手っ取り早そうとなった ref: pypa/gh-action-pypi-publish#201
I'm using this action to publish all merged PRs to test.pypi.org and this has been working flawlessly for years looking something like this;
Full workflow
But this has just started to fail with a 400 error stating
Only one sdist may be uploaded per release.
(failed run)Is this not the exact thing that
skip-existing
is supposed to prevent?The text was updated successfully, but these errors were encountered: