Skip to content

Commit

Permalink
edit of main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Ciframa committed Jun 24, 2024
1 parent 7583c61 commit b77a93b
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,26 @@ name: Deploy to SFTP
on:
push:
branches:
- master
- master # Change this to your target branch zkouska

jobs:
deploy-backend:
runs-on: ubuntu-latest

container:
image: ubuntu:latest

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

- name: Deploy Backend via SFTP
env:
FTP_USERNAME: ${{ secrets.FTP_USERNAME }}
FTP_PASSWORD: ${{ secrets.FTP_PASSWORD }}
- name: Update packages and install lftp
run: |
apt-get update
apt-get install -y lftp
lftp -e "set ssl:verify-certificate no; open -u $FTP_USERNAME,$FTP_PASSWORD 287586.w86.wedos.net && mirror -R Fitmo_backend /www/subdom/beTest"
- 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

Expand All @@ -47,7 +48,5 @@ jobs:
FTP_USERNAME: ${{ secrets.FTP_USERNAME }}
FTP_PASSWORD: ${{ secrets.FTP_PASSWORD }}
run: |
apt-get update
apt-get install -y lftp
cd dist # Navigate to the build output directory
lftp -e "set ssl:verify-certificate no; open -u $FTP_USERNAME,$FTP_PASSWORD 287586.w86.wedos.net && mirror -R . /www/subdom/devTest"
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 b77a93b

Please sign in to comment.