diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index f6dbb02..293d497 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -153,16 +153,15 @@ jobs: exclusions: 'storage/* build/* node_modules/*' - name: ➗ Calculate checksum run: openssl md5 ${{ env.BUILD_ARTIFACT_STAGING_DIR }}build.zip | cut -d" " -f2 > ${{ env.BUILD_ARTIFACT_STAGING_DIR }}checksum.txt - - name: 📂 Sync files - uses: SamKirkland/FTP-Deploy-Action@3.0.0 + - name: 📂 Sync Files + uses: SamKirkland/web-deploy@v1 with: - log-level: verbose - timeout: 60000 - server: ${{ secrets.HOST_SERVER }} - username: ${{ secrets.FTP_USER }} - password: ${{ secrets.FTP_PASSWORD }} - local-dir: ${{ env.BUILD_ARTIFACT_STAGING_DIR }} - server-dir: ${{ env.BUILD_ARTIFACT_DESTINATION_DIR }} + target-server: ${{ secrets.HOST_SERVER }} + remote-user: ${{ secrets.SSH_USER }} + private-ssh-key: ${{ secrets.SSH_KEY }} + destination-path: ${{ env.BUILD_ARTIFACT_DESTINATION_DIR }} + source-path: ${{ env.BUILD_ARTIFACT_STAGING_DIR }} + ssh-port: ${{ secrets.SSH_PORT }} - name: 🚀 Run deploy script uses: appleboy/ssh-action@v1.0.3 with: