fix: do not delete the whole search-indexes dir

This commit is contained in:
Phan An 2021-04-16 11:35:36 +02:00
parent 0250970de0
commit 0e0e6f436b
No known key found for this signature in database
GPG key ID: A81E4477F0BB6FDC

View file

@ -25,7 +25,7 @@ jobs:
php artisan koel:init --no-interaction
sed -i 's/DB_CONNECTION=sqlite/DB_CONNECTION=sqlite-persistent/' .env
sed -i 's/DB_DATABASE=koel/DB_DATABASE=koel.db/' .env
rm -rf .git ./node_modules ./resources/assets/.git ./resources/assets/node_modules ./storage/search-indexes ./koel.db ./.env
rm -rf .git ./node_modules ./resources/assets/.git ./resources/assets/node_modules ./storage/search-indexes/*.index ./koel.db ./.env
cd ../
zip -r /tmp/koel-${{ steps.get_version.outputs.VERSION }}.zip koel/
tar -zcvf /tmp/koel-${{ steps.get_version.outputs.VERSION }}.tar.gz koel/