From cb3503f677a527a301db585f60a52e07799563f4 Mon Sep 17 00:00:00 2001 From: LucHeart Date: Thu, 9 Jan 2025 22:57:32 +0100 Subject: [PATCH] Use a action for upload --- .../actions/cdn-upload-version-info/action.yml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/actions/cdn-upload-version-info/action.yml b/.github/actions/cdn-upload-version-info/action.yml index e1732363..f3b49b1b 100644 --- a/.github/actions/cdn-upload-version-info/action.yml +++ b/.github/actions/cdn-upload-version-info/action.yml @@ -28,14 +28,20 @@ runs: shell: bash run: | rm -rf upload/ - mkdir -p upload/${{ inputs.fw-version }}/${{ inputs.board }} + mkdir -p upload/ - name: Create boards.txt shell: bash run: | - echo -e '${{ inputs.boards }}' >> upload/${{ inputs.fw-version }}/${{ inputs.board }}/boards.txt + echo -e '${{ inputs.boards }}' >> upload/boards.txt - name: Upload artifacts to CDN - shell: bash - run: | - sshpass -p "${{ inputs.bunny-stor-password }}" scp -vvv -r upload/* ${{ inputs.bunny-stor-username }}@${{ inputs.bunny-stor-hostname }}:/ + uses: milanmk/actions-file-deployer@master + with: + remote-protocol: "sftp" + remote-host: "${{ inputs.bunny-stor-hostname }}" + remote-user: "${{ inputs.bunny-stor-username }}" + remote-password: "${{ inputs.bunny-stor-password }}" + remote-path: "/${{ inputs.fw-version }}/${{ inputs.board }}" + local-path: "upload" + sync: "full" \ No newline at end of file