rseng / zenodo-release

Automated releases to zenodo without granting admin access to webhooks
MIT License
10 stars 4 forks source link

Support Uploading multiple files #5

Open johrstrom opened 2 years ago

johrstrom commented 2 years ago

For Open OnDemand, it's likely the artifact in use (the one being cited) is an .rpm package and not the source code.

So in my case, I'd like to upload many files. Namely, The source tar and packages like rpm and deb. Ruby's really good with fileglobs, so I tend to use them a lot and think most folks would want to ** directories.

with:
  files:
    # specific files
    - 'packaging/rpm/cool-package-{{ version }}.rpm'

    # with globs
    - 'packaging/deb/cool_package*'
vsoch commented 2 years ago

yeah great idea! We can just shove this into glob :)

vsoch commented 2 years ago

Also, I've never seen a "with" or an envar as a list - I think people usually have to do:

with:
  files: | 
     one
     two
     three

And then it's parsed as a blob with newlines in it, if that makes sense.

johrstrom commented 2 years ago

That makes sense, GH can't pass an array to a shell command? I didn't think it through. But in any case, cool!