You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 4, 2021. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 4, 2021. It is now read-only.
Add the ability to use wildcards for uploading files. #60
Allow multiple files to be uploaded, either from a list, or from wildcard expansion.
Many build systems create artifact files that do not have a name known before hand, and may want to publish multiple files.
For example, a zip filename that includes the tag, or the branch that it was created from, or even for what environment it is built for (Windows / MacOS / iOS / Android / etc.) And adding supporting files, such as an MD5 / SHA1 file, or a signature file.
This would probably require removing the 'asset_name' and 'asset_content_type' attributes to have these generated by this action.
The actions/download-artifact@v2 action downloads the ocamlyices2 artifact into ./ocamlyices2/ folder. After downloading, the folder looks like this (you can see the artifact itself on the job page):
@eyal0, very honestly, use pyGitHub or any other library for your favourite language and write your own script/action. If you know how to code (I believe you do), doing so will be easier and less frustrating than trying to use this Action. See:
msys2/msys2-autobuild was initially based on eine/tip, but was then customised. It uses the same Python library (pyGitHub), but the internal logic is completely different (adapted to MSYS2's non-trivial ecosystem).
@eine I ended up using a different action which already includes an upload feature. It uses some javascript libraries which are probably the equivalent of pyGitHub.
(I'm using msys2 to auto-release Windows builds with dozens of dlls and with great success. Thanks for msys2-setup!)
@eyal0, all the libreries interact with the same API, so all of them are equivalent. I just referenced the Python because that's the one I'm more familiar with. The JS one is probably one of actions/toolkit#334, and that's ok too.
Activity
eine commentedon Sep 4, 2020
Dup of #47. Ref #58.
alexellis commentedon Nov 3, 2020
I would also be supportive of this
@opussf if it's of use to you, feel free to use: https://github.com/marketplace/actions/upload-release-assets
Felixoid commentedon Nov 3, 2020
Hey @alexellis, looks good. Do you consider to add a way to define the tag for upload manually? Or using
${{ github.event.release }}object for it?alexellis commentedon Nov 3, 2020
I would accept a PR for that 👍
eyal0 commentedon Jan 5, 2021
@opussf You can accomplish this by setting an environment variable and then using it?
But still, having wildcard support would be nice. It's not clear to me how you would specify multiple asset_names for multiple asset_paths.
maelvls commentedon Jan 6, 2021
As a workaround, I have been using @alexellis's alexellis/upload-assets. For example (see in my ci.yml):
The actions/download-artifact@v2 action downloads the
ocamlyices2artifact into./ocamlyices2/folder. After downloading, the folder looks like this (you can see the artifact itself on the job page):Finally, the alexellis/upload-assets action uploads everything that is in
./ocanlyices2/*; the above assets now appear on the Github Release page:eyal0 commentedon Jan 6, 2021
But if you have wildcards, where does the name come from? Just from the file name? What if multiple files with the same name match?
maelvls commentedon Jan 9, 2021
I make sure to have different file names (as shown in the screenshot above)
eine commentedon Jan 9, 2021
@eyal0, very honestly, use pyGitHub or any other library for your favourite language and write your own script/action. If you know how to code (I believe you do), doing so will be easier and less frustrating than trying to use this Action. See:
eyal0 commentedon Jan 9, 2021
@eine I ended up using a different action which already includes an upload feature. It uses some javascript libraries which are probably the equivalent of pyGitHub.
(I'm using msys2 to auto-release Windows builds with dozens of dlls and with great success. Thanks for msys2-setup!)
eine commentedon Jan 9, 2021
@eyal0, all the libreries interact with the same API, so all of them are equivalent. I just referenced the Python because that's the one I'm more familiar with. The JS one is probably one of actions/toolkit#334, and that's ok too.
(So glad to hear that!)
1-alex98 commentedon Feb 16, 2021
I now used this action