I am trying to build a YAML release pipeline in Azure devops. I already have YAML build pipeline. I can see that when i do a YAML build Azure devops is making azure-pipelines.yml which is checked into a master branch of code repo. Now if I want a separate YAML release (CD) pipeline how can I do it, because when click release there is YAML creation option.
Or do i have to add release to the existing azure-pipelines.yml which already has the build. In this case my build and release is all in one file. how can i then control the release and in some case reject the releases? What is the recommended approach? A bit lost in this YAML CI/CD. Please advise.