action-gh-release
action-gh-release copied to clipboard
How to create and push to a release from different jobs?
Hi! Thank you for this action 😄
I am trying to set up a workflow in which I have one job to create a release against a tag, and then a subsequent matrix which packages the app on three operating systems. From this matrix job, I would like to push assets to the release that was initially created.
Is it possible to use this action to achieve something like this? The two jobs & steps in question are highlighted below. Is there a recommended way to use the outputs from this action when trying to upload artifacts?
(Note, I haven't actually run the following workflow yet, just double-checking after reading through the docs)

@develohpanda take a look at actions/upload-artifact. You will upload the artefact from both runners and take another one, or wait in another step on the other runner to finish and then download both files/artifacts and publish them in a single step.
Yes the only want to refer to files created across jobs is with the upload/download artifact actions.
Your use case should work with this action as long as the files exist in the locations you specify at the step you specify them for uploading to a release
Yes the only way ...
Would have just edited the comment, but couldn't
I think he is asking a use case similar to actions/upload-release-asset
, a consumer for outputs.upload_url
, since that action is deprecated and is pointing to this action instead.
I think I'm gonna settle with xresloader/upload-to-github-release for this feature.
I end up using https://github.com/svenstaro/upload-release-action instead