#!/bin/bash # Load environment variables from .env if [ -f "$(dirname "$0")/../../.env" ]; then source "$(dirname "$0")/../../.env" elif [ -f ".env" ]; then source ".env" else echo "Error: .env file not found" exit 1 fi # Define deployment variables REMOTE_HOST="$UPSKILL_STAGING_IP" REMOTE_USER="$UPSKILL_STAGING_SSH_USER" REMOTE_PATH_BASE="$UPSKILL_STAGING_PATH" PLUGIN_SLUG="hvac-community-events" # Define files/directories to exclude EXCLUDE_PATTERNS=( ".git/" ".gitignore" "node_modules/" ".DS_Store" "*.log" ".env" ".env.local" "*.swp" "*.tmp" "tests/coverage/" "tests/bin/" "wordpress-dev/" "*.md" "composer.lock" "package-lock.json" ) # Define which directories to deploy DEPLOY_DIRS=( "includes" "templates" "assets" ) # Define which root files to deploy DEPLOY_FILES=( "hvac-community-events.php" "README.txt" "index.php" )