mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 14:23:57 -07:00
Update _release.php
This commit is contained in:
parent
05c32df1aa
commit
ef525bf505
1 changed files with 15 additions and 0 deletions
15
_release.php
15
_release.php
|
@ -106,3 +106,18 @@ if ($bytesWritten === 0) {
|
|||
out("\n- Config file has been updated!", 'success');
|
||||
|
||||
// Git add & commit
|
||||
runProcess('git add -A && git commit -m "release: ' . escapeshellarg($version) . '"');
|
||||
|
||||
$userName = 'belomaxorka';
|
||||
$userEmail = 'roman25052006.kelesh@gmail.com';
|
||||
|
||||
$tagCmd = <<<CMD
|
||||
git -c user.name="{$userName}" \
|
||||
-c user.email="{$userEmail}" \
|
||||
tag -a "{$version}" -m "Release {$version}"
|
||||
CMD;
|
||||
|
||||
runProcess($tagCmd);
|
||||
runProcess("git tag -v \"$version\"");
|
||||
|
||||
out("\n- Release $version has been successfully prepared and committed!", 'success');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue