Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
help:
@echo "Please use \`make <target>' where <target> is one of"
@echo " tag to modify the version and tag"

tag:
$(if $(TAG),,$(error TAG is not defined. Pass via "make tag TAG=1.22.0"))
@echo Tagging $(TAG)
sed -i '' -e "s/APP_VERSION = '.*'/APP_VERSION = '$(TAG)'/" src/Console/AppFactory.php
php -l src/Console/AppFactory.php
git add -A
git commit -m '$(TAG) release' -n
git tag -s '$(TAG)' -m 'Version $(TAG)'
4 changes: 3 additions & 1 deletion src/Console/AppFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

final class AppFactory
{
private const APP_VERSION = '1.21.0';

/**
* @psalm-suppress UndefinedClass
* @var list<class-string>
Expand All @@ -21,7 +23,7 @@ final class AppFactory
*/
public static function create(): Application
{
$app = new Application('wsdl-tools', '1.0.0');
$app = new Application('wsdl-tools', self::APP_VERSION);
$app->addCommands([
new Command\FlattenCommand(),
new Command\ValidateCommand(),
Expand Down