Swoft core and ext components release CLI tool package.
- Synchronize the latest changes to each sub-repository
- Batch release of new versions
Preview:
Required:
- git
- php
- swoole
- composer
curl https://raw.githubusercontent.com/swoftlabs/swoft-releasecli/master/install.sh | bash
cd ~
git clone https://github.com/swoftlabs/swoft-releasecli .swoft-releasecli
cd .swoft-releasecli
composer install
ln -s $PWD/bin/releasecli /usr/local/bin/releasecli
chmod a+x bin/releasecli
First use git to pull the latest swoft-components or swoft-ext to the local, go to the repository directory.
Execute:
# 1. add remote for all components
releasecli git:addrmt --all
# 2. force push all change to every github repo
releasecli git:fpush --all
# 3. release new version for all components
releasecli git:release --all -y -t v2.0.8
Use builtin command for update tool to latest
releasecli upself
cd ~/swoft-releasecli
git pull
chmod a+x bin/releasecli
Required the
swoftcli
php -d phar.readonly=0 ~/.composer/vendor/bin/swoftcli phar:pack -o=releasecli.phar
rm -f /usr/local/bin/releasecli
rm -rf ~/swoft-releasecli