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