The publishing workflow
Feature branch workflow with protected main branch
Section titled βFeature branch workflow with protected main branchβFor our websites, we use a type of Git workflow called feature branching. This means that any new work is made in a separate site in CloudCannon, then merged into the dev branch (also called Staging). The dev branch is then merged into the main branch (also called Production).
Our main branch (which is the live, public-facing site) cannot be published to directly, meaning the live site is very stable and protected from any mistakes.
What does this mean for me?
Section titled βWhat does this mean for me?βMainly this means that unlike any other content management system (CMS) you might have used, everything has to be published twice β first to dev, then to main.
The publishing workflow
Section titled βThe publishing workflowβThis is our publishing process:
- You make your changes or additions on your designated branch, then save them and allow your branch to finish building.
- You create a pull request to merge your branch into
dev. If you have sufficient permissions, you can approve your own pull request, which will automatically merge your updates into the Staging site. If you cannot approve your pull request, someone with a publishing role will have to approve it for you. - Allow the staging site to finish building, then preview your changes at the Staging test URL. If everything is OK, create another pull request to merge
devintomain. - Someone with a publishing role will approve your pull request and merge your changes into
mainβ making your changes live on the website.
Staging test URLs
Section titled βStaging test URLsβminderoo.org (dev): https://russet-coast.cloudvent.net/
minderoo.org (stories): https://lime-cookie.cloudvent.net/
minderoo.org (media): https://modest-banana.cloudvent.net/