Skip to content

Commit 4c86214

Browse files
committed
updated and added robofile
1 parent 0f94a07 commit 4c86214

2 files changed

Lines changed: 39 additions & 11 deletions

File tree

RoboFile.php

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?php
2+
3+
class Robofile extends \Robo\Tasks
4+
{
5+
public function changelog()
6+
{
7+
// ask for changes in this release
8+
$changelog = $this->taskChangelog()
9+
->version(\Robo\Runner::VERSION)
10+
->askForChanges();
11+
12+
// adding changelog and pushing it
13+
$this->taskExec('git add CHANGELOG.md')->run();
14+
$this->taskExec('git commit -m "updated changelog"')->run();
15+
$this->taskExec('git push')->run();
16+
17+
// create GitHub release
18+
$this->taskGitHubRelease(\Robo\Runner::VERSION)
19+
->uri('Codegyre/Robo')
20+
->askDescription()
21+
->changes($changelog->getChanges())
22+
->run();
23+
}
24+
25+
26+
}

composer.lock

Lines changed: 13 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)