github-action-ghr icon indicating copy to clipboard operation
github-action-ghr copied to clipboard

Upload a directory as one zip

Open Nosfistis opened this issue 2 years ago • 2 comments

I would like to upload the entire directory as one zip file. E.g. dist/package-a should be uploaded as package-a.zip, or perhaps another name I could set in the options.

Is that supported right now? Using the GHR_COMPRESS and GHR_PATH results in multiple uploads.

Nosfistis avatar Oct 20 '23 09:10 Nosfistis

Unfortunately not possible yet, you'd have to run the action multiple times.

fnkr avatar Oct 20 '23 10:10 fnkr

I managed to have a similar result by pointing to the parent folder dist. That created a package-a.zip file, which contains a package-a folder inside.

I would prefer a flat structure inside, but that works for now.

How would you run the action multiple times to achieve the same result?

Nosfistis avatar Oct 20 '23 12:10 Nosfistis