Skip to content

Commit

Permalink
build(robo): fix changelog update for gh-pages
Browse files Browse the repository at this point in the history
Signed-off-by: Domingo Oropeza <doropeza@teclib.com>
  • Loading branch information
DIOHz0r committed Mar 13, 2018
1 parent 0e3ab32 commit ce2e46f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion RoboFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,8 @@ public function publishRelease($repository, $label = 'none', $origin = '') {
// make changelog for gh-pages
$this->taskGitStack()->checkout('-b robo-gh-pages upstream/gh-pages')->checkout('robo-develop ' . $filename)->run();
$this->_exec('sed -i "1s/^/---\\nlayout: modal\\ntitle: changelog\\n---\\n/" ' . $filename);
$this->taskGitStack()->add($filename)->commit($commitMessage, '--no-gpg-sign')->run();
$this->_exec('mv -f ' . $filename. ' _includes/' . $filename);
$this->taskGitStack()->add('_includes/' .$filename)->commit($commitMessage, '--no-gpg-sign')->run();

// publish the changes
if ($origin) {
Expand Down

0 comments on commit ce2e46f

Please sign in to comment.