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:
30
.github/workflows/deploy.yml
vendored
30
.github/workflows/deploy.yml
vendored
@@ -18,7 +18,7 @@ jobs:
|
|||||||
name: Pre-deploy tests
|
name: Pre-deploy tests
|
||||||
uses: ./.github/workflows/ci.yml
|
uses: ./.github/workflows/ci.yml
|
||||||
|
|
||||||
# ── Deploy via SFTP ──────────────────────────────────────────────
|
# ── Deploy via SSH/SCP ──────────────────────────────────────────
|
||||||
deploy:
|
deploy:
|
||||||
name: Deploy to Hostinger
|
name: Deploy to Hostinger
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -27,30 +27,16 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Deploy plugin files via SFTP
|
- name: Deploy plugin files via SCP
|
||||||
uses: SamKirkland/FTP-Deploy-Action@v4.3.5
|
uses: appleboy/scp-action@v0.1.7
|
||||||
with:
|
with:
|
||||||
server: ${{ secrets.SFTP_HOST }}
|
host: ${{ secrets.SFTP_HOST }}
|
||||||
username: ${{ secrets.SFTP_USER }}
|
username: ${{ secrets.SFTP_USER }}
|
||||||
password: ${{ secrets.SFTP_PASS }}
|
password: ${{ secrets.SFTP_PASS }}
|
||||||
port: ${{ secrets.SFTP_PORT || 22 }}
|
port: ${{ secrets.SFTP_PORT }}
|
||||||
protocol: ftps
|
source: "admin/,includes/,languages/,public/,peptide-news-plugin.php"
|
||||||
local-dir: ./
|
target: ${{ secrets.WP_PLUGIN_PATH }}
|
||||||
server-dir: ${{ secrets.WP_PLUGIN_PATH }}
|
overwrite: true
|
||||||
exclude: |
|
|
||||||
**/.git*
|
|
||||||
**/.git*/**
|
|
||||||
.github/**
|
|
||||||
tests/**
|
|
||||||
vendor/**
|
|
||||||
node_modules/**
|
|
||||||
composer.json
|
|
||||||
composer.lock
|
|
||||||
phpunit.xml.dist
|
|
||||||
.phpcs.xml.dist
|
|
||||||
peptide-news-plugin/**
|
|
||||||
README.md
|
|
||||||
.editorconfig
|
|
||||||
|
|
||||||
- name: Purge LiteSpeed Cache
|
- name: Purge LiteSpeed Cache
|
||||||
if: success()
|
if: success()
|
||||||
|
|||||||
Reference in New Issue
Block a user