RalfG / python-wheels-manylinux-build

GitHub Action to build Python manylinux wheels
https://github.com/marketplace/actions/python-wheels-manylinux-build
Apache License 2.0
92 stars 44 forks source link

Add option to produce GitHub artifacts #16

Closed rcarcasses closed 4 years ago

rcarcasses commented 4 years ago

As far as I have understood this GitHub Action allows to produce fixed wheels and push it automatically to public registry. I wonder if we could take the output of this build process and upload it to private registries, for instance, or to produce artifacts that we could use with actions/upload-artifact@v1. Any ideas?

RalfG commented 4 years ago

This action only builds the wheels. They can then be uploaded using e.g. Twine in a next workflow step. Similarly, you can append any actions, and do with the wheel files what you want. In the current version (v0.2.2), the wheels are placed in the wheelhouse directory.

For example, you can use the upload-artifact action, as you suggested, by adding this step:

- uses: actions/upload-artifact@v2-preview
  with:
    name: wheels
    path: wheelhouse/*.whl

Note: wildcard support has been added in v2 of the upload-artifact action, which is still in preview: https://github.com/actions/upload-artifact/issues/11#issuecomment-598812156.

You can also choose to use an action to upload to a private repository, or an FTP server.

rcarcasses commented 4 years ago

@RalfG thanks for your reply, I'll give a try to your advice.