@@ -29,11 +29,59 @@ jobs:
2929
3030 - name : Create plugin ZIP (without dictionaries)
3131 run : |
32- # Create ZIP using WordPress scripts with .distignore
33- npx wp-scripts plugin-zip
32+ # Create temporary directory for ZIP contents
33+ mkdir -p wp-kakitai-temp
3434
35- # The ZIP will be in the root directory
36- mv wp-kakitai.zip wp-kakitai-wordpress-org.zip
35+ # Copy files excluding build/dict
36+ rsync -av --exclude='build/dict' \
37+ --exclude='.git' \
38+ --exclude='.github' \
39+ --exclude='node_modules' \
40+ --exclude='vendor' \
41+ --exclude='landing' \
42+ --exclude='dist' \
43+ --exclude='tests' \
44+ --exclude='scripts' \
45+ --exclude='*.md' \
46+ --exclude='CHANGELOG.md' \
47+ --exclude='CONTRIBUTING.md' \
48+ --exclude='LICENSE' \
49+ --exclude='QUICK_START.md' \
50+ --exclude='RELEASE.md' \
51+ --exclude='.editorconfig' \
52+ --exclude='.eslintignore' \
53+ --exclude='.eslintrc' \
54+ --exclude='.gitattributes' \
55+ --exclude='.gitignore' \
56+ --exclude='.distignore' \
57+ --exclude='.phpcs.xml.dist' \
58+ --exclude='composer.json' \
59+ --exclude='composer.lock' \
60+ --exclude='grumphp.yml' \
61+ --exclude='package.json' \
62+ --exclude='package-lock.json' \
63+ --exclude='phpcs.xml.dist' \
64+ --exclude='webpack.config.js' \
65+ --exclude='wp-cli.yml' \
66+ --exclude='wp-env.json' \
67+ --exclude='.DS_Store' \
68+ --exclude='Thumbs.db' \
69+ --exclude='*.log' \
70+ --exclude='*.zip' \
71+ ./ wp-kakitai-temp/wp-kakitai/
72+
73+ # Create ZIP file
74+ cd wp-kakitai-temp
75+ zip -r ../wp-kakitai-wordpress-org.zip wp-kakitai/
76+ cd ..
77+
78+ # Cleanup
79+ rm -rf wp-kakitai-temp
80+
81+ # Verify ZIP size and contents
82+ echo "ZIP created: $(ls -lh wp-kakitai-wordpress-org.zip | awk '{print $5}')"
83+ echo "Checking for dictionary files in ZIP:"
84+ unzip -l wp-kakitai-wordpress-org.zip | grep "build/dict" || echo "✅ No dictionary files found in ZIP"
3785
3886 - name : Create dictionary archive
3987 run : |
0 commit comments