Add vendor directory verification and symlink fix
Some checks failed
Create Release Package / build-release (push) Failing after 59s

Explicitly check vendor after composer install and replace
symlink with actual files if needed for proper packaging.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-29 22:21:12 +01:00
parent 6a10eada8c
commit 0ebd2d0103

View File

@@ -35,6 +35,22 @@ jobs:
- name: Install dependencies
run: composer install --no-dev --optimize-autoloader --prefer-dist
- name: Verify and fix vendor directory
run: |
echo "=== Checking vendor directory ==="
ls -la vendor/ || echo "vendor/ not found!"
ls -la vendor/magdev/ || echo "vendor/magdev/ not found!"
# If client is a symlink, replace with actual files
if [ -L "vendor/magdev/wc-licensed-product-client" ]; then
echo "Found symlink, replacing with actual files..."
TARGET=$(readlink -f vendor/magdev/wc-licensed-product-client)
rm vendor/magdev/wc-licensed-product-client
cp -r "$TARGET" vendor/magdev/wc-licensed-product-client
fi
ls -la vendor/magdev/wc-licensed-product-client/ || echo "Client directory not found!"
- name: Install gettext for translation compilation
run: sudo apt-get update && sudo apt-get install -y gettext