The deployment of the new content should be atomic, as it is done in the deployment playbook for the fundraising frontend.
Deploy the branches to the respective system (test to test, master to production).
Possible steps in a playbook:
- Check out newest version in a local release subdirectory.
- Create an archive, copy it to the server and extract it in a timestamped subdirectory in content
- Change the content symlink in the app subdirectory to the new release subdirectory.
- Clear Twig cache
- Remove old releases, leaving the last 2 releases.
Create the playbook steps and an include file that can be run as part of the deployment playbook for the fundraising frontend and as a standalone playbook.