poetry publish fails despite a dist folder being present #8357
-
Ok, I have been told it's better to keep the build and deployment in two separate jobs (for security reasons). So, I build my project (poetry build) and share the resulting dist folder with a second job that gets an ephemeral key and pushes to pypi. This used to work if the build step was in the same job. Here's an example: |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
i get No files to publish. Run poetry build first or use the --build option. |
Beta Was this translation helpful? Give feedback.
-
The dist folder is present and as expected packed with
|
Beta Was this translation helpful? Give feedback.
-
Ayyup, I too fell for this tarp. That error message should really be updated to include this word of warning <3 |
Beta Was this translation helpful? Give feedback.
The error message could definitely be improved, but
poetry
will only look for a built distribution matching the version number inpyproject.toml
. Since yourbuild
job updates this version, yourdeploy
job will need to do the same