Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjusting yaml file #4

Merged
merged 1 commit into from
Sep 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading