How to automate build and deployment process in ionic for both Android play store and ios App store?

I have tried gulp tasks to build an app with different flavors like name, packages, theme, etc. But what I need is a process which will do these tasks as well as make a release build and sign it automatically and deploy them to respective stores.

What I want to achieve here is I will type one command in command line/terminal and it will take care of all the things required. I don’t have any issue with multiple parameters I may need to pass etc.

You can post links also here if you can’t spend much time here. And if I have posted in the wrong section please suggest the right one.