-
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.
Yaml file for deploying frontend issue fix
- Loading branch information
Showing
1 changed file
with
6 additions
and
4 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,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: | ||
|
@@ -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 |