Register the whole vendor without filtering
Currently all files except files with .php extension are excluded from being staged in make-release.sh. This result in excluding certain required files. Hence, now the entire vendor file will be registered.
This commit is contained in:
parent
a8635b8871
commit
257d966dd9
|
@ -34,22 +34,13 @@ git rm -rf vendor
|
||||||
rm -rf vendor
|
rm -rf vendor
|
||||||
rm -f composer.lock
|
rm -f composer.lock
|
||||||
composer install || fail "composer install failed"
|
composer install || fail "composer install failed"
|
||||||
find vendor/ -type f -name "*.php" \
|
git add vendor
|
||||||
| grep -v '/examples/' \
|
|
||||||
| grep -v '/example/' \
|
|
||||||
| grep -v '/tests/' \
|
|
||||||
| grep -v '/test/' \
|
|
||||||
| xargs -L1 git add -f
|
|
||||||
find vendor/ -type f -name LICENSE | xargs -L1 git add -f
|
|
||||||
find vendor/ -type f -name '*.json' | xargs -L1 git add -f
|
|
||||||
find asset/ -type f | xargs -L1 git add -f
|
find asset/ -type f | xargs -L1 git add -f
|
||||||
echo "v$VERSION" > VERSION
|
echo "v$VERSION" > VERSION
|
||||||
git add VERSION
|
git add VERSION
|
||||||
git add composer.lock -f
|
git add composer.lock -f
|
||||||
git commit -m "Version v$VERSION"
|
git commit -m "Version v$VERSION"
|
||||||
|
|
||||||
rm -rf vendor
|
|
||||||
git checkout vendor
|
|
||||||
composer validate --no-check-all --strict || fail "Composer validate failed"
|
composer validate --no-check-all --strict || fail "Composer validate failed"
|
||||||
|
|
||||||
if [ -z "$NO_OPT" ]; then
|
if [ -z "$NO_OPT" ]; then
|
||||||
|
|
Loading…
Reference in New Issue