Skip to content

Commit

Permalink
Add release name to deploy:info (#3783)
Browse files Browse the repository at this point in the history
* add release name to info

* failsafe for initial deployment
  • Loading branch information
Propaganistas authored Feb 26, 2024
1 parent 51e8e82 commit ef0087d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion recipe/deploy/info.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@

desc('Displays info about deployment');
task('deploy:info', function () {
info("deploying <fg=magenta;options=bold>{{target}}</>");
$releaseName = test('[ -d {{deploy_path}}/.dep ]') ? get('release_name') : 1;

info("deploying <fg=magenta;options=bold>{{target}}</> (release <fg=magenta;options=bold>{$releaseName}</>)");
});

0 comments on commit ef0087d

Please sign in to comment.