name: Specific Folder FTP Upload on: push: branches: - main paths: - 'resources/views/form/**' jobs: ftp-deploy: runs-on: ubuntu-latest steps: # 1. Checkout the repository code fully - name: Checkout Repository uses: actions/checkout@v4 with: fetch-depth: 0 # 2. Sync the targeted folder using the corrected rsync args - name: Sync Changed Files via SFTP uses: easingthemes/ssh-deploy@v5.1.0 with: SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} REMOTE_HOST: '157.245.101.206' REMOTE_USER: 'root' SOURCE: 'resources/views/form' # 👈 Removed trailing slash TARGET: '/var/www/rapport/resources/views/' # 👈 Point to parent folder ARGS: '-rlgodivzc' # 👈 Fixed: changed to lowercase verbose mode, removed capital V