Skip to content

Commit

Permalink
Use a action for upload
Browse files Browse the repository at this point in the history
  • Loading branch information
LucHeart committed Jan 9, 2025
1 parent cd5a228 commit cb3503f
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/actions/cdn-upload-version-info/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit cb3503f

Please sign in to comment.