Move publishing jobs to a separate stage
This MR adds a custom "publish" stage additionally to the three default stages.
I'm not sure about adding the stages to workflow.yml. I could have added an extra stages.yml. Renaming workflow.yml could break projects.
Defining custom stages may break projects that define their own stages, but I don't see how to avoid this.