-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
10 additions
and
10 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Deploy to FTP | ||
name: Deploy to SFTP | ||
|
||
on: | ||
push: | ||
|
@@ -13,14 +13,14 @@ jobs: | |
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Deploy Backend to FTP server | ||
uses: SamKirkland/[email protected] | ||
- name: Deploy Backend to SFTP server | ||
uses: depsypher/sftp-deploy@v3 | ||
with: | ||
server: 287586.w86.wedos.net | ||
username: ${{ secrets.FTP_USERNAME }} | ||
password: ${{ secrets.FTP_PASSWORD }} | ||
local-dir: Fitmo_backend/ # Directory containing backend files | ||
server-dir: /www/subdom/beTest/ # Target directory on the server for backend | ||
localPath: Fitmo_backend # Directory containing backend files | ||
remotePath: /www/subdom/beTest # Target directory on the server for backend | ||
|
||
deploy-frontend: | ||
runs-on: ubuntu-latest | ||
|
@@ -29,11 +29,11 @@ jobs: | |
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Deploy Frontend to FTP server | ||
uses: SamKirkland/[email protected] | ||
- name: Deploy Frontend to SFTP server | ||
uses: depsypher/sftp-deploy@v3 | ||
with: | ||
server: 287586.w86.wedos.net | ||
username: ${{ secrets.FTP_USERNAME }} | ||
password: ${{ secrets.FTP_PASSWORD }} # Use the same FTP credentials | ||
local-dir: Fitmo_frontend/ # Directory containing frontend files | ||
server-dir: /www/subdom/devTest/ # Target directory on the server for frontend | ||
password: ${{ secrets.FTP_PASSWORD }} | ||
localPath: Fitmo_frontend # Directory containing frontend files | ||
remotePath: /www/subdom/devTest # Target directory on the server for frontend |