-
how to only upload tar.gz file? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
❗ It is not recommended to only upload an sdist. You should always upload both sdist and wheels.
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-target-package-dists-directory, or delete all non-sdist files, or just not build the wheels in the first place. |
Beta Was this translation helpful? Give feedback.
❗ It is not recommended to only upload an sdist. You should always upload both sdist and wheels.
.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…