We have an GitHub Actions workflow to automatically deploy master-changes like this:
- Install all dependencies (WordPress, Plugins, Themes, mu-plugins)
- Rename muplugins to muplugins-new
- Rename plugins to plugins-new
- Rename themes to themes-new
- ZIP WordPress folder
- Upload migration script
- Upload WordPress folder
- Call migration script
- Activate maintenance mode for WordPress
- UNZIP new WordPress version
- Replace muplugins with muplugins-new
- Replace plugins with plugins-new
- Replace themes with themes-new
- Stop maintenance mode for WordPress
- Call WordPress migration