removing unneeded files from repo and plugin
All checks were successful
Create Release / build (push) Successful in 3s
All checks were successful
Create Release / build (push) Successful in 3s
This commit is contained in:
@@ -66,8 +66,44 @@ jobs:
|
||||
# Copy files to the temp directory (excluding git and other unnecessary files)
|
||||
cp -r * /tmp/wp-digital-download/ 2>/dev/null || true
|
||||
|
||||
# Exclude .git, .gitea, and .playwright-mcp directories
|
||||
rm -rf /tmp/wp-digital-download/.git /tmp/wp-digital-download/.gitea /tmp/wp-digital-download/.playwright-mcp 2>/dev/null || true
|
||||
# Exclude development and sensitive files from plugin distribution
|
||||
# Remove version control and CI/CD files
|
||||
rm -rf /tmp/wp-digital-download/.git 2>/dev/null || true
|
||||
rm -rf /tmp/wp-digital-download/.gitea 2>/dev/null || true
|
||||
rm -rf /tmp/wp-digital-download/.github 2>/dev/null || true
|
||||
rm -f /tmp/wp-digital-download/.gitignore 2>/dev/null || true
|
||||
|
||||
# Remove testing and development files
|
||||
rm -rf /tmp/wp-digital-download/.playwright-mcp 2>/dev/null || true
|
||||
rm -rf /tmp/wp-digital-download/tests 2>/dev/null || true
|
||||
rm -rf /tmp/wp-digital-download/test 2>/dev/null || true
|
||||
rm -rf /tmp/wp-digital-download/node_modules 2>/dev/null || true
|
||||
|
||||
# Remove documentation and config files that might contain sensitive data
|
||||
rm -f /tmp/wp-digital-download/CLAUDE.md 2>/dev/null || true
|
||||
rm -f /tmp/wp-digital-download/README.md 2>/dev/null || true
|
||||
|
||||
# Remove ALL JSON files (package.json, composer.json, and any test configs)
|
||||
find /tmp/wp-digital-download -type f -name "*.json" -delete 2>/dev/null || true
|
||||
|
||||
# Remove any lock files
|
||||
rm -f /tmp/wp-digital-download/package-lock.json 2>/dev/null || true
|
||||
rm -f /tmp/wp-digital-download/composer.lock 2>/dev/null || true
|
||||
|
||||
# Remove any .env files that might contain credentials
|
||||
find /tmp/wp-digital-download -type f -name ".env*" -delete 2>/dev/null || true
|
||||
|
||||
# Remove any backup or temporary files
|
||||
find /tmp/wp-digital-download -type f -name "*~" -delete 2>/dev/null || true
|
||||
find /tmp/wp-digital-download -type f -name "*.bak" -delete 2>/dev/null || true
|
||||
find /tmp/wp-digital-download -type f -name "*.tmp" -delete 2>/dev/null || true
|
||||
|
||||
# Remove any log files
|
||||
find /tmp/wp-digital-download -type f -name "*.log" -delete 2>/dev/null || true
|
||||
|
||||
# List what's being included (for verification)
|
||||
echo "Files being included in the release:"
|
||||
ls -la /tmp/wp-digital-download/
|
||||
|
||||
# Create the ZIP file with the proper structure
|
||||
cd /tmp
|
||||
|
Reference in New Issue
Block a user