docs/yaml.md
YAML recipes are validated against schema.json.
Example recipe:
import:
- recipe/laravel.php
config:
repository: "[email protected]:example/example.com.git"
remote_user: deployer
hosts:
example.com:
deploy_path: "~/example"
tasks:
build:
- cd: "{{release_path}}"
- run: "npm run build"
after:
deploy:failed: deploy:unlock
YAML and PHP recipes can import each other — write tasks needing closures in PHP and import them from YAML, or the other way around with import().
For a richer alternative with comments, multiline strings, and trailing commas, see MAML.