Run publish stage only after merged on the default branch
- The
build,teststages will run on merge requests to themainbranch, direct pushes tomainbranch and manual/scheduled triggers. - The
publishstage will run only after merge request is merged into themainbranch