mirror of
https://github.com/Icinga/icinga-php-library.git
synced 2025-07-23 13:45:06 +02:00
make-release.sh: Copy assets, don't include sources of them
This commit is contained in:
parent
d11bbb0f52
commit
da439fd52a
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
|||||||
|
/asset/
|
||||||
/vendor/
|
/vendor/
|
||||||
/.idea/
|
/.idea/
|
||||||
.*.sw[op]
|
.*.sw[op]
|
||||||
|
@ -27,7 +27,8 @@ git checkout -b "$BRANCH" || fail "Version branch $BRANCH already exists"
|
|||||||
git rm -rf vendor
|
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 --no-scripts || fail "composer install failed"
|
||||||
|
composer run-script post-update-cmd -- copy-assets
|
||||||
find vendor/ -type f -name "*.php" \
|
find vendor/ -type f -name "*.php" \
|
||||||
| grep -v '/examples/' \
|
| grep -v '/examples/' \
|
||||||
| grep -v '/example/' \
|
| grep -v '/example/' \
|
||||||
@ -36,7 +37,7 @@ find vendor/ -type f -name "*.php" \
|
|||||||
| xargs -L1 git add -f
|
| xargs -L1 git add -f
|
||||||
find vendor/ -type f -name LICENSE | 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 vendor/ -type f -name '*.json' | xargs -L1 git add -f
|
||||||
find vendor -type f -path 'vendor/*/asset/*' | 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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user