Skip to content

How to only upload tar.gz file? #78

Answered by webknjaz
Gwill asked this question in Q&A
Discussion options

You must be logged in to vote

❗ It is not recommended to only upload an sdist. You should always upload both sdist and wheels.

⚠️ I just want to make it clear that it's a bad idea not to provide .tar.gz and .whl. 🛑

I don't know what your motivation is, but assuming you were thinking about publishing wheels and sdist from different jobs, don't do this. Instead, build them in different jobs, safe as artifacts and upload altogether. There are pointers in README https://github.com/pypa/gh-action-pypi-publish#non-goals and other discussions #15 (comment).

Assuming you really want to only upload an sdist, you could copy it to a different directory and use that via https://github.com/pypa/gh-action-pypi-publish#customizing-t…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by webknjaz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
invalid This doesn't seem right question Further information is requested
2 participants
Converted from issue

This discussion was converted from issue #77 on November 17, 2021 12:45.