Skip to content

Commit 508d484

Browse files
committed
replaced release scripts with Robofile
1 parent 01d46c6 commit 508d484

3 files changed

Lines changed: 31 additions & 5 deletions

File tree

RoboFile.php

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?php
2+
/**
3+
* This is project's console commands configuration for Robo task runner.
4+
*
5+
* @see http://robo.li/
6+
*/
7+
class RoboFile extends \Robo\Tasks
8+
{
9+
/**
10+
* Publishes new Verify release
11+
* @param null $newVer
12+
*/
13+
public function release($newVer = null)
14+
{
15+
if ($newVer) {
16+
$this->say("version updated to $newVer");
17+
$this->taskWriteToFile(__DIR__.'/VERSION')
18+
->line($newVer)
19+
->run();
20+
}
21+
$version = trim(file_get_contents(__DIR__.'/VERSION'));
22+
$this->taskGitStack()
23+
->tag($version)
24+
->push('origin','master --tags')
25+
->run();
26+
27+
$this->taskGitHubRelease($newVer)
28+
->run();
29+
}
30+
}

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.2.7
1+
0.3.0

scripts/tag_release.php

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)