From b77a93bc01c7ab2ef821ca292a320c79dd82e5e4 Mon Sep 17 00:00:00 2001 From: Marek Cifra Date: Mon, 24 Jun 2024 14:58:56 +0200 Subject: [PATCH] edit of main.yml --- .github/workflows/main.yml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index fa50215..5e160f7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 @@ -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" \ No newline at end of file