'Cpanel deploy yml file project to multiple domains

I am following the existing article from Stackoverflow. com but it is not working fine :(

Can anyone suggest to me what I am doing wrong?

Here is my code:

---
deployment:
  tasks:
    - export DEPLOYPATH=/home/myvindo/public_html/domain1.com
    - /bin/cp * $DEPLOYPATH
    - export DEPLOYPATH=/home/myvindo/public_html/domain2.com
    - /bin/cp * $DEPLOYPATH


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source