Skip to content

Commit

Permalink
Prep for 4.0.4 release
Browse files Browse the repository at this point in the history
  • Loading branch information
greg-1-anderson committed Apr 30, 2023
1 parent c5c64a4 commit 53ad95a
Show file tree
Hide file tree
Showing 6 changed files with 178 additions and 125 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ tests/_log/*
tests/_helpers/_generated/*
*.phar
.phpunit.result.cache
phpunit.xml
phpdoc.xml
27 changes: 5 additions & 22 deletions RoboFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,15 +111,15 @@ public function release(ConsoleIO $io, $opts = ['beta' => false])
->run();

if ($stable) {
$this->pharPublish($io);
$this->pharBuild($io);
}

// Skip publishing site until it works again.
// $this->publish($io);
$this->publish($io);

$this->collectionBuilder($io)->taskGitStack()
->tag($version)
->push('origin ' . self::MAIN_BRANCH . ' --tags')
->push('origin ' . self::MAIN_BRANCH)
->push('origin ' . $version)
->run();

if ($stable) {
Expand Down Expand Up @@ -470,23 +470,6 @@ public function pharInstall(ConsoleIO $io)
*/
public function pharPublish(ConsoleIO $io)
{
$this->pharBuild($io);

$this->collectionBuilder($io)
->taskFilesystemStack()
->remove('robo-release.phar')
->rename('robo.phar', 'robo-release.phar')
->taskGitStack()
->checkout('site')
->pull('origin site')
->taskFilesystemStack()
->remove('robotheme/robo.phar')
->rename('robo-release.phar', 'robotheme/robo.phar')
->taskGitStack()
->add('robotheme/robo.phar')
->commit('Update robo.phar to ' . \Robo\Robo::version())
->push('origin site')
->checkout(self::MAIN_BRANCH)
->run();
throw new \Exception("phar:publish is obsolete.");
}
}
6 changes: 5 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
],
"require": {
"php": ">=8.0",
"consolidation/annotated-command": "^4.7",
"consolidation/annotated-command": "4.8.1",
"consolidation/config": "^2.0.1",
"consolidation/log": "^2.0.2 || ^3",
"consolidation/output-formatters": "^4.1.2",
Expand Down Expand Up @@ -54,6 +54,10 @@
"@lint",
"@unit",
"@cs"
],
"phpdoc": "build/tools/phpdoc",
"install-tools": [
"if [[ ! -f build/tools/phpdoc ]] ; then mkdir -p build/tools && wget --output-document=build/tools/phpdoc https://phpdoc.org/phpDocumentor.phar && chmod +x build/tools/phpdoc; fi"
]
},
"config": {
Expand Down
Loading

0 comments on commit 53ad95a

Please sign in to comment.