Skip to content

Commit

Permalink
Run a deploy script if it exists
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewFeeney committed Aug 1, 2018
1 parent 8cd3108 commit a6a91b2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Shipper.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,10 @@ public function ship($dir, $arguments)
$this->green('Success!');
$this->output('');
$this->green($finalZipPath.' ready to ship!');

if (file_exists($deployScript = $this->dir.'/deploy.php')) {
require $deployScript;
}
}

protected function getConfig()
Expand Down Expand Up @@ -211,4 +215,9 @@ protected function publish()

$this->green('.shipignore file published');
}

protected function zipFileName()
{
return $this->baseDirectory().'-'.$this->version.'.zip';
}
}

0 comments on commit a6a91b2

Please sign in to comment.