是否可以直接下载 Github-Actions 工件?
Is it possible to download Github-Actions artifacts directly?
当我想下载神器时,我使用以下类型 URL:https://github.com/some_user/some_repo/suites/some_id/artifacts/some_id
。然而,即使结果只是一个文件,这也总是让我找到一个 .zip
包。在我的例子中,这个额外的层是完全多余的,我想跳过它(当我构建一个我希望能够方便地预览的 pdf 时,它特别烦人)。
(如何)我可以设置自动化工作流程来公开解压的文件?
暂时不能:
Note: We only currently support downloading an artifact from the GitHub UI by zipping all the files together (this is independent of how the artifact gets uploaded). If you upload an individual file, in the UI the artifact will still present itself as a Zip because that is currently only what we support. We have plans in our roadmap to offer a more enhanced artifact UI experience that will allow you to browse and download individual files from an artifact. No ETA on when that might arrive, but it is something that we really really want to enhance.
https://github.com/actions/upload-artifact/issues/3#issuecomment-598820814
This is a limitation of our APIs and our UI, some of my earlier comments go into more details #39 (comment) and #39 (comment)
If you also look at our public api to download an artifact, you'll notice that we currently require a zip :archive_format: https://developer.github.com/v3/actions/artifacts/#download-an-artifact and that is what effectively is being used when you click to download an artifact. Ideally we should have options that let get the raw contents of whatever was uploaded without any archiving format, but we currently don't have any solutions disappointed
https://github.com/actions/upload-artifact/issues/109#issuecomment-671853296
当我想下载神器时,我使用以下类型 URL:https://github.com/some_user/some_repo/suites/some_id/artifacts/some_id
。然而,即使结果只是一个文件,这也总是让我找到一个 .zip
包。在我的例子中,这个额外的层是完全多余的,我想跳过它(当我构建一个我希望能够方便地预览的 pdf 时,它特别烦人)。
(如何)我可以设置自动化工作流程来公开解压的文件?
暂时不能:
Note: We only currently support downloading an artifact from the GitHub UI by zipping all the files together (this is independent of how the artifact gets uploaded). If you upload an individual file, in the UI the artifact will still present itself as a Zip because that is currently only what we support. We have plans in our roadmap to offer a more enhanced artifact UI experience that will allow you to browse and download individual files from an artifact. No ETA on when that might arrive, but it is something that we really really want to enhance.
https://github.com/actions/upload-artifact/issues/3#issuecomment-598820814
This is a limitation of our APIs and our UI, some of my earlier comments go into more details #39 (comment) and #39 (comment)
If you also look at our public api to download an artifact, you'll notice that we currently require a zip :archive_format: https://developer.github.com/v3/actions/artifacts/#download-an-artifact and that is what effectively is being used when you click to download an artifact. Ideally we should have options that let get the raw contents of whatever was uploaded without any archiving format, but we currently don't have any solutions disappointed
https://github.com/actions/upload-artifact/issues/109#issuecomment-671853296