From 61d06c10c4b9cd9999db0dca7cec6766fa750462 Mon Sep 17 00:00:00 2001 From: Terence Ong Date: Mon, 6 Apr 2026 14:48:50 +0700 Subject: [PATCH] Switch deploy from FTP to SSH/SCP for Hostinger compatibility FTP deploy timed out due to Hostinger blocking FTPS from external CI servers. Switched to appleboy/scp-action using SSH on port 65002, which is more reliable for CI/CD pipelines. Co-Authored-By: Claude Opus 4.6 --- .github/workflows/deploy.yml | 30 ++++++++---------------------- 1 file changed, 8 insertions(+), 22 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 072424c..1c4c709 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -18,7 +18,7 @@ jobs: name: Pre-deploy tests uses: ./.github/workflows/ci.yml - # ── Deploy via SFTP ────────────────────────────────────────────── + # ── Deploy via SSH/SCP ────────────────────────────────────────── deploy: name: Deploy to Hostinger runs-on: ubuntu-latest @@ -27,30 +27,16 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Deploy plugin files via SFTP - uses: SamKirkland/FTP-Deploy-Action@v4.3.5 + - name: Deploy plugin files via SCP + uses: appleboy/scp-action@v0.1.7 with: - server: ${{ secrets.SFTP_HOST }} + host: ${{ secrets.SFTP_HOST }} username: ${{ secrets.SFTP_USER }} password: ${{ secrets.SFTP_PASS }} - port: ${{ secrets.SFTP_PORT || 22 }} - protocol: ftps - local-dir: ./ - server-dir: ${{ secrets.WP_PLUGIN_PATH }} - exclude: | - **/.git* - **/.git*/** - .github/** - tests/** - vendor/** - node_modules/** - composer.json - composer.lock - phpunit.xml.dist - .phpcs.xml.dist - peptide-news-plugin/** - README.md - .editorconfig + port: ${{ secrets.SFTP_PORT }} + source: "admin/,includes/,languages/,public/,peptide-news-plugin.php" + target: ${{ secrets.WP_PLUGIN_PATH }} + overwrite: true - name: Purge LiteSpeed Cache if: success()