actions / upload-artifact

MIT License
3.26k stars 739 forks source link

[feat req] Tar gzip all paths before upload [volunteers exist] #413

Open dmitry-midokura opened 1 year ago

dmitry-midokura commented 1 year ago

What would you like to be added?

I would love to have an option to enable tar/gzip files before upload.

Why is this needed?

Uploading of junit report takes 2 minutes in our build and we have manually to do the tar before the upload to speed it up.

If you think this feature would make sense, we might try to come up with a PR.

Thank you!

dfeinstein-coremap commented 1 year ago

I would love to have this feature because of the billing - charging by the raw upload size means I have to zip the artifacts before the upload resulting in double zip.

amakhrov commented 1 year ago

In the action output, it indicates that the files are actually gzipped before upload:

The raw size of all the files that were specified for upload is 27 460 369 bytes The size of all the files that were uploaded is 2 917 841 bytes. This takes into account any gzip compression used to reduce the upload size, time and storage

Despite that, on the Artifacts section of the workflow run summary, the raw, uncompressed, file size it displayed.

I'm not sure whether the raw or gzipped size is counted towards the limit / billing.

dfeinstein-coremap commented 1 year ago

From GitHub's documentation :

When an artifact is downloaded using the GitHub UI, all files that were individually uploaded as part of the artifact get zipped together into a single file. This means that billing is calculated based on the size of the uploaded artifact and not the size of the zip file.

jaynetics commented 1 year ago

this would also fix #199