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 ade324e commit c0e562c
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,35 +9,29 @@ jobs:
deploy-backend:
runs-on: ubuntu-latest

container:
image: ubuntu:latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Update packages and install lftp
- name: Install lftp
run: |
apt-get update
apt-get install -y lftp
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

container:
image: ubuntu:latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Update packages and install lftp
- name: Install lftp
run: |
apt-get update
apt-get install -y lftp
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"

0 comments on commit c0e562c

Please sign in to comment.