Recording Your sets/streaming/live

Ok so how would I go about this?

I obviously know how do record video etc on my Go Pro’s and upload like I did here:

Jomox 999 and friends

but how would I go about just switching on my gear, playing it live and streaming at the same time and have that stream saved to my mac ssd.

What software would I need? Ideally stuff that won’t glitch in the middle of a performance :flushed:

So basically I walk in switch on my setup, the whole thing streams live I hit play and it’s streaming, I hit stop then it’s all recorded to my YouTube channel… anyone know if this can be done… I’m not savvy on video gear.