diff --git a/deploy.php b/deploy.php index ae9bd91..bf1a66e 100644 --- a/deploy.php +++ b/deploy.php @@ -51,6 +51,7 @@ 'package-lock.json', 'package.json', 'phpcs.xml', + 'llms.txt', ], 'exclude-file' => true, 'include' => [], @@ -172,6 +173,15 @@ } ); +desc( 'Symlink llms.txt from shared if it exists' ); +task( 'llms:link', function () { + if ( test( '[ -f "{{shared_path}}/llms.txt" ]' ) ) { + run( 'ln -sfn "{{shared_path}}/llms.txt" "{{release_path}}/llms.txt"' ); + } +} ); + +after( 'deploy:shared', 'llms:link' ); + $wp_tasks = [ 'deploy:prepare', 'deploy:unlock',