fix of main.yml #2
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
name: Deploy to FTP | |
on: | |
push: | |
branches: | |
- master # Change this to your target branch | |
jobs: | |
deploy-backend: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Deploy Backend to FTP server | |
uses: SamKirkland/[email protected] | |
with: | |
server: ftp://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 | |
deploy-frontend: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Deploy Frontend to FTP server | |
uses: SamKirkland/[email protected] | |
with: | |
server: ftp://287586.w86.wedos.net | |
username: ${{ secrets.FTP_USERNAME }} | |
password: ${{ secrets.FTP_PASSWORD }} | |
local-dir: Fitmo_frontend # Directory containing frontend files | |
server-dir: /www/subdom/devTest # Target directory on the server for frontend |