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 <noreply@anthropic.com>
This commit is contained in:
Terence Ong
2026-04-06 14:48:50 +07:00
parent b9d14cbb59
commit 61d06c10c4

View File

@@ -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()