From 8a5d03ec2952d0d3a12b4851e16ac4531b1baff3 Mon Sep 17 00:00:00 2001 From: zyb Date: Mon, 1 Jul 2024 05:35:21 +0800 Subject: [PATCH] modified: .github/workflows/mikrotik_patch.yml --- .github/workflows/mikrotik_patch.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/mikrotik_patch.yml b/.github/workflows/mikrotik_patch.yml index a0a0aeb..b1f1d4f 100644 --- a/.github/workflows/mikrotik_patch.yml +++ b/.github/workflows/mikrotik_patch.yml @@ -279,14 +279,15 @@ jobs: cp ./new_iso/*.npk ./publish/ - name: Sync files - uses: SamKirkland/FTP-Deploy-Action@v4.3.5 + uses: SamKirkland/web-deploy@v1 with: - server: ${{ secrets.FTP_SERVER }} - username: ${{ secrets.FTP_USERNAME }} - password: ${{ secrets.FTP_PASSWORD }} - port: ${{ secrets.FTP_PORT }} - server-dir: "${{ secrets.FTP_DIRECTORY }}/${{ env.LATEST_VERSION }}/" - local-dir: ./publish/ + 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/ + - name: Delete Release tag ${{ env.LATEST_VERSION }} run: |