Run publish stage only after merged on the default branch
- The
build
,test
stages will run on merge requests to themain
branch, direct pushes tomain
branch and manual/scheduled triggers. - The
publish
stage will run only after merge request is merged into themain
branch