-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from rotirk20/development
Adjusting yaml file
- Loading branch information
Showing
1 changed file
with
5 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
@@ -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 |