...
Check that the staging branch automatically deploys properly to staging automatically.
You cannot directly commit to master. Make a branch and merge it with staging, then commit staging to master.
If staging encounters no errors, merge staging with master. Do not delete the staging branch.
...