From 5ad197fb75ad25af053d464f06d1b3b3b35661f7 Mon Sep 17 00:00:00 2001 From: Gemechis Elias <44440394+gemechis-elias@users.noreply.github.com> Date: Tue, 28 Jan 2025 10:51:46 +0300 Subject: [PATCH] CI/CD Workflow Updated --- .github/workflows/deploy_to_cpanel.yml | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy_to_cpanel.yml b/.github/workflows/deploy_to_cpanel.yml index f4532bd..80535fc 100644 --- a/.github/workflows/deploy_to_cpanel.yml +++ b/.github/workflows/deploy_to_cpanel.yml @@ -14,15 +14,28 @@ jobs: - name: Checkout code uses: actions/checkout@v4 - # Step 2: Deploy the application to the cPanel server via FTP - - name: Deploy to cPanel + # Step 2: Deploy the application to the root directory on the cPanel server via FTP + - name: Deploy to root directory uses: SamKirkland/FTP-Deploy-Action@v4.3.5 with: server: ${{ secrets.FTP_HOST }} username: ${{ secrets.FTP_USERNAME }} password: ${{ secrets.FTP_PASSWORD }} - local-dir: ./ # Directory to upload - server-dir: / # Remote directory + local-dir: ./ # Directory to upload + server-dir: / # Remote root directory + protocol: ftps # Use FTPS + timeout: 600000 # Set a high timeout for large projects + log-level: verbose + + # Step 3: Deploy the application to the /horan-translator-bot/ directory on the cPanel server via FTP + - name: Deploy to /horan-translator-bot/ directory + uses: SamKirkland/FTP-Deploy-Action@v4.3.5 + with: + server: ${{ secrets.FTP_HOST }} + username: ${{ secrets.FTP_USERNAME }} + password: ${{ secrets.FTP_PASSWORD }} + local-dir: ./ # Directory to upload + server-dir: /horan-translator-bot/ # Remote directory for /horan-translator-bot/ protocol: ftps # Use FTPS timeout: 600000 # Set a high timeout for large projects log-level: verbose