diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f994399..365cfcf 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,4 +1,4 @@ -name: Deploy to FTP +name: Deploy to SFTP on: push: @@ -13,14 +13,14 @@ jobs: - name: Checkout repository uses: actions/checkout@v2 - - name: Deploy Backend to FTP server - uses: SamKirkland/FTP-Deploy-Action@4.3.0 + - name: Deploy Backend to SFTP server + uses: depsypher/sftp-deploy@v3 with: server: 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 + localPath: Fitmo_backend # Directory containing backend files + remotePath: /www/subdom/beTest # Target directory on the server for backend deploy-frontend: runs-on: ubuntu-latest @@ -29,11 +29,11 @@ jobs: - name: Checkout repository uses: actions/checkout@v2 - - name: Deploy Frontend to FTP server - uses: SamKirkland/FTP-Deploy-Action@4.3.0 + - name: Deploy Frontend to SFTP server + uses: depsypher/sftp-deploy@v3 with: server: 287586.w86.wedos.net username: ${{ secrets.FTP_USERNAME }} - password: ${{ secrets.FTP_PASSWORD }} # Use the same FTP credentials - local-dir: Fitmo_frontend/ # Directory containing frontend files - server-dir: /www/subdom/devTest/ # Target directory on the server for frontend + password: ${{ secrets.FTP_PASSWORD }} + localPath: Fitmo_frontend # Directory containing frontend files + remotePath: /www/subdom/devTest # Target directory on the server for frontend