Skip to content

fix of main.yml

fix of main.yml #13

Workflow file for this run

name: Deploy to SFTP
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: Install lftp
run: |
sudo apt-get update
sudo apt-get install -y lftp
- name: Deploy Backend via SFTP
run: lftp -e "set ssl:verify-certificate no; open -u ${{ secrets.FTP_USERNAME }},${{ secrets.FTP_PASSWORD }} 287586.w86.wedos.net && mirror -R Fitmo_backend /www/subdom/beTest"
deploy-frontend:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install lftp
run: |
sudo apt-get update
sudo apt-get install -y lftp
- name: Deploy Frontend via SFTP
run: lftp -e "set ssl:verify-certificate no; open -u ${{ secrets.FTP_USERNAME }},${{ secrets.FTP_PASSWORD }} 287586.w86.wedos.net && mirror -R Fitmo_frontend /www/subdom/devTest"