actions / upload-artifact

MIT License
3.03k stars 686 forks source link

[feat req] Non-zip artifacts #426

Open cnlohr opened 11 months ago

cnlohr commented 11 months ago

What would you like to be added?

It may already be possible, but I can't figure out how to do it. For a variety of reasons, I would find it very useful if we could upload non-zip artifacts.

Why is this needed?

For instance:

  1. It would be possible to upload an image on-commit with information about the specific build that outlines details about the repo's current state.
  2. If I want to upload a .zip file, I don't want it double-zipped.
  3. Artifacts can be used by embedded devices to update, whereas zipped files are hard to deal with on embedded devices.
theogravity commented 6 months ago

This is important for uploading Linux AppImage files:

https://docs.appimage.org/packaging-guide/distribution.html#do-not-put-appimages-into-other-archives

MohabMohie commented 6 months ago

++ same concern for double zipping files and also if I want to attach log files or html files and easily access them from a mobile device :)

Hainguyen1210 commented 5 months ago

Here is my use case. I want to generate the file openapi.json, if I have the link to the file in plain, I can directly use https://redocly.github.io/redoc/ to load the API spec.

plauche commented 4 months ago

++ Would love to see this. I'm using this action to quickly bundle up tooling directories, and since permissions are erased by the action I find myself creating archives of the directories. Which are then zipped up by the action so my users must extract the artifacts twice.

flywire commented 3 months ago

Support simply renaming the zip file extension without zipping it again so the artifact can be opened as a document.

Eg: https://en.wikipedia.org/wiki/OpenDocument

The Open Document Format for Office Applications (ODF), also known as OpenDocument, standardized as ISO 26300, is an open file format for word processing documents, spreadsheets, presentations and graphics and using ZIP-compressed[6] XML files.