Skip to content

Commit

Permalink
Merge pull request #4 from rotirk20/development
Browse files Browse the repository at this point in the history
Adjusting yaml file
  • Loading branch information
rotirk20 authored Sep 20, 2024
2 parents 18528a6 + 05f38f7 commit 5323e89
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,18 +72,19 @@ 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/[email protected]
with:
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:
Expand All @@ -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

0 comments on commit 5323e89

Please sign in to comment.