You've already forked wc-licensed-product
Add vendor directory verification and symlink fix
Some checks failed
Create Release Package / build-release (push) Failing after 59s
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:
@@ -35,6 +35,22 @@ jobs:
|
|||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: composer install --no-dev --optimize-autoloader --prefer-dist
|
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
|
- name: Install gettext for translation compilation
|
||||||
run: sudo apt-get update && sudo apt-get install -y gettext
|
run: sudo apt-get update && sudo apt-get install -y gettext
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user