diff --git a/.github/workflows/mikrotik_patch.yml b/.github/workflows/mikrotik_patch.yml index 53f3760..c54e0c7 100644 --- a/.github/workflows/mikrotik_patch.yml +++ b/.github/workflows/mikrotik_patch.yml @@ -278,16 +278,15 @@ jobs: cp CHANGELOG.txt ./publish/ cp ./new_iso/*.npk ./publish/ - - name: Sync files - uses: SamKirkland/web-deploy@v1 + - name: Publish files + uses: wlixcc/SFTP-Deploy-Action@v1.2.4 with: - target-server: ${{ secrets.SSH_SERVER }} - remote-user: ${{ secrets.SSH_USERNAME }} - private-ssh-key: ${{ secrets.SSH_KEY }} - ssh-port: ${{ secrets.SSH_PORT }} - destination-path: "${{ secrets.SSH_DIRECTORY }}/${{ env.LATEST_VERSION }}/" - source-path: ./publish/ - rsync-options: --archive --verbose --stats --compress --delete-after --human-readable + server: ${{ secrets.SSH_SERVER }} + username: ${{ secrets.SSH_USERNAME }} + ssh_private_key: ${{ secrets.SSH_KEY }} + port: ${{ secrets.SSH_PORT }} + remote_path: "${{ secrets.SSH_DIRECTORY }}/${{ env.LATEST_VERSION }}/" + local_path: ./publish/* - name: Delete Release tag ${{ env.LATEST_VERSION }} run: |