Publishing allows editors to merge changes from one branch to another. You can choose to merge directly or with a pull request. Selecting a publish branch enables the publish interface for your site — this is a useful approach for staging sites.
Publishing workflows are enabled by default for branched sites in projects.
Adding a publish branch#
To connect a publish branch and enable publishing:
Go to Site Settings / Publishing and click Add Publish Branch.

Select the branch you want to merge into and click Add Publish Branch. This will fail if there is no additional branch in the repository.
Once set up, editors can publish changes back to the main branch.
Choosing your publish mode#
The publish mode determines if publish is a direct merge or a pull request. Merges have less overhead, while pull requests can trigger external builds and workflows. To change the publish mode for a Git connected site:
- Go to Site Settings / Publishing
- Select Merge or Pull Request
- Click Update Publish Settings

Delete after Publish#
You can choose to delete the site associated with the development branch after publishing. This is useful if you know that no further development will take place on that branch after it is merged.
To turn this feature on, go to Site Settings / Files / Publishing and click the checkbox labelled Delete this site after publish.
