Skip to content

Commit 53ad95a

Browse files
Prep for 4.0.4 release
1 parent c5c64a4 commit 53ad95a

File tree

6 files changed

+178
-125
lines changed

6 files changed

+178
-125
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@ tests/_log/*
88
tests/_helpers/_generated/*
99
*.phar
1010
.phpunit.result.cache
11+
phpunit.xml
12+
phpdoc.xml

RoboFile.php

+5-22
Original file line numberDiff line numberDiff line change
@@ -111,15 +111,15 @@ public function release(ConsoleIO $io, $opts = ['beta' => false])
111111
->run();
112112

113113
if ($stable) {
114-
$this->pharPublish($io);
114+
$this->pharBuild($io);
115115
}
116116

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

120119
$this->collectionBuilder($io)->taskGitStack()
121120
->tag($version)
122-
->push('origin ' . self::MAIN_BRANCH . ' --tags')
121+
->push('origin ' . self::MAIN_BRANCH)
122+
->push('origin ' . $version)
123123
->run();
124124

125125
if ($stable) {
@@ -470,23 +470,6 @@ public function pharInstall(ConsoleIO $io)
470470
*/
471471
public function pharPublish(ConsoleIO $io)
472472
{
473-
$this->pharBuild($io);
474-
475-
$this->collectionBuilder($io)
476-
->taskFilesystemStack()
477-
->remove('robo-release.phar')
478-
->rename('robo.phar', 'robo-release.phar')
479-
->taskGitStack()
480-
->checkout('site')
481-
->pull('origin site')
482-
->taskFilesystemStack()
483-
->remove('robotheme/robo.phar')
484-
->rename('robo-release.phar', 'robotheme/robo.phar')
485-
->taskGitStack()
486-
->add('robotheme/robo.phar')
487-
->commit('Update robo.phar to ' . \Robo\Robo::version())
488-
->push('origin site')
489-
->checkout(self::MAIN_BRANCH)
490-
->run();
473+
throw new \Exception("phar:publish is obsolete.");
491474
}
492475
}

composer.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
],
2525
"require": {
2626
"php": ">=8.0",
27-
"consolidation/annotated-command": "^4.7",
27+
"consolidation/annotated-command": "4.8.1",
2828
"consolidation/config": "^2.0.1",
2929
"consolidation/log": "^2.0.2 || ^3",
3030
"consolidation/output-formatters": "^4.1.2",
@@ -54,6 +54,10 @@
5454
"@lint",
5555
"@unit",
5656
"@cs"
57+
],
58+
"phpdoc": "build/tools/phpdoc",
59+
"install-tools": [
60+
"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"
5761
]
5862
},
5963
"config": {

0 commit comments

Comments
 (0)