Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Copilot Lvl 2
Message 1 of 5

Can you add binaries to releases with GitHub Actions?

I currently search for a way to automatically add generated binaries (in my case Jar files) to a release, which was already created, meaning it doesn't create a release and adds files, but instead listens for when I create a release and attaches the files to it.

 

Is there a way to achieve this? I found some workflows, but they all don't really explain what parts are important and how you could get files from different tasks (in my case a task in build.gradle that builds the jars and then uploads it to bintray)

4 Replies
Highlighted
Pilot Lvl 2
Message 2 of 5

Re: Can you add binaries to releases with GitHub Actions?

Copilot Lvl 2
Message 3 of 5

Re: Can you add binaries to releases with GitHub Actions?

Yes, but from what I understand would this require the release to be created within the same workflow, while in my case I want to add the files/assets to the release I myself create.

 

Like already mentioned do I already have a setup to create the binaries to then upload them to an external site and are now wondering if I could use those generated files to attach them to the release I created.

Pilot Lvl 1
Message 4 of 5

Re: Can you add binaries to releases with GitHub Actions?

Copilot Lvl 2
Message 5 of 5

Re: Can you add binaries to releases with GitHub Actions?

I think you don't get my point.

I want to add an asset to an already existing release (when I created it) and not create one from a push, which is what your answer and the answer before you suggest.

 

I already found a possible solution and look into it further.