Save only build code into github release

I’m trying to set the configuration yml to basically do this:

When a tagged commit happens:
- Go to the normal flow but also exec the build task
- This build will create a folder called build, I want the release to contain this folder but not the branch itself.

I’ve reading the artifact section, I really want to learn about this to get the most of CI, but I’m having problems getting it.

Any resource to point out to figure it out what I’m trying to do?