Skip to content

Commit

Permalink
Yaml file for deploying frontend issue fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rotirk20 committed Sep 20, 2024
1 parent 632f82e commit 62a98ee
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,19 +72,20 @@ jobs:
uses: actions/download-artifact@v4
with:
name: angular-build
path: ./frontend/dist/smetovi/ # Download the Angular build
path: ./frontend/dist/smetovi/ # Ensure this is your Angular build folder

- 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/smetovi/ # Deploy directly to the root
server-dir: /public_html/ # Path where frontend files are deployed on server
local-dir: ./frontend/dist/smetovi/ # Deploy the actual files
server-dir: /public_html/ # Upload to the existing public_html folder
port: ${{ secrets.FTP_PORT }}
log-level: verbose
delete: true # Optional: Remove old files in the target directory
overwrite: true # Overwrite existing files
delete: true # Optional: Delete old files in the directory to avoid conflicts

# --- Deploy Backend ---
deploy-backend:
Expand All @@ -111,3 +112,4 @@ jobs:
server-dir: /public_html/backend/ # Adjust the path as necessary
port: ${{ secrets.FTP_PORT }}
log-level: verbose
overwrite: true # Overwrite existing files

0 comments on commit 62a98ee

Please sign in to comment.