From 05f38f7cd36a1e83a40d9a21c83882fd153ee941 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tarik=20Dedi=C4=87?= Date: Fri, 20 Sep 2024 21:36:40 +0200 Subject: [PATCH] Adjusting yaml file --- .github/workflows/ci.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 63e792b..bee3221 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -72,7 +72,7 @@ jobs: uses: actions/download-artifact@v4 with: name: angular-build - path: ./frontend/dist/ # Download the Angular build + path: ./frontend/dist/smetovi/ # Download the Angular build - name: Deploy frontend to cPanel via FTP uses: SamKirkland/FTP-Deploy-Action@4.3.0 @@ -80,10 +80,11 @@ jobs: server: ${{ secrets.FTP_SERVER }} username: ${{ secrets.FTP_USERNAME }} password: ${{ secrets.FTP_PASSWORD }} - local-dir: ./frontend/dist/ # Adjust this to match your project build output + local-dir: ./frontend/dist/smetovi/ # Adjust this to match your project build output server-dir: /public_html/frontend/ # Path where frontend files are deployed on server port: ${{ secrets.FTP_PORT }} log-level: verbose + delete: true # Add this to clean the target directory before deploying # --- Deploy Backend --- deploy-backend: @@ -106,7 +107,8 @@ jobs: server: ${{ secrets.FTP_SERVER }} username: ${{ secrets.FTP_USERNAME }} password: ${{ secrets.FTP_PASSWORD }} - local-dir: ./backend/ # Ensure it ends with a / + local-dir: ./backend/ # Adjust this to the correct backend build folder server-dir: /public_html/backend/ # Path where backend files are deployed on server port: ${{ secrets.FTP_PORT }} log-level: verbose + delete: true # Add this to clean the target directory before deploying