The official guide for how to deploy contracts can be found here: https://docs.safe.global/core-api/safe-contracts-deployment