From 632f82edad2e71d3626ba4e6d0347d8c7e71f3cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tarik=20Dedi=C4=87?= Date: Fri, 20 Sep 2024 21:59:05 +0200 Subject: [PATCH] Fixing path for backend deployment --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7a49a4b..f25c05b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -99,7 +99,7 @@ jobs: uses: actions/download-artifact@v4 with: name: backend-artifact - path: ./backend # Download the backend code + path: ./backend/ # This should be a directory with a trailing slash - name: Deploy backend to cPanel via FTP uses: SamKirkland/FTP-Deploy-Action@4.3.0 @@ -107,7 +107,7 @@ jobs: server: ${{ secrets.FTP_SERVER }} username: ${{ secrets.FTP_USERNAME }} password: ${{ secrets.FTP_PASSWORD }} - local-dir: ./backend # Deploy the entire backend folder - server-dir: /public_html/backend/ # Path where backend files are deployed on server + local-dir: ./backend/ # Ensure this is a directory with a trailing slash + server-dir: /public_html/backend/ # Adjust the path as necessary port: ${{ secrets.FTP_PORT }} log-level: verbose