How to trigger deploy command after test?

When test done. I want CI to run the file ./deploy.sh

This is my circle.yaml

deployment:
  production: # just a label; label names are completely up to you
    branch: master
    commands:
      - ./deploy.sh

Thank you for following up @craigcosmo and sorry for the confusion!