Skip to content

Commit

Permalink
fix of main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Ciframa committed Jun 24, 2024
1 parent 2743bab commit 60e08fc
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy to FTP
name: Deploy to SFTP

on:
push:
Expand All @@ -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
Expand All @@ -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

0 comments on commit 60e08fc

Please sign in to comment.