How to upload release assets from multiple OSes into one release? #25467
-
I am using CMake to build OS-specific builds for my (test) software. I already have an action deployed that activates on push. It uses Get CMake and other related actions to accomplish this. Now I want to take it to the next step: use the builds generated using CMake and upload them as assets for a release. This is the attempt I made. While it does upload the executables, it seems to be creating a release for every OS. I want one release for all OSes. I find the syntax to be a bit daunting. I wonder if there is a simple way to have “nested” steps. Or if it’s even possible to upload once. Let me know if more details are required; I’ll be happy to provide them. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
The
|
Beta Was this translation helpful? Give feedback.
-
Thank you @Simran-B! I got it to work. Here’s the updated config. |
Beta Was this translation helpful? Give feedback.
The
build
job is executed for every OS, including the creation of a GitHub release. You should only create the release once, and then let each build job upload the release assets to the same release. Maybe like this: