how to configure branches to deploy in production not in preview mode ?

I am using git flow and using workflow to deploy. When i am deploying from main branch it is going to production environment, if deployed from any other branch it shows preview.

I need to deploy in production environment from main and as well as branch with prefix release (release/*).


I am not able to do that. below is my workflow file.

Basically my production deployment branch is
main
and i need to replace main with wildcard branch called release/**
Was this page helpful?