Skip to content

Commit

Permalink
use action for other uploads aswell
Browse files Browse the repository at this point in the history
  • Loading branch information
LucHeart committed Jan 9, 2025
1 parent cb3503f commit cbb0503
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
14 changes: 12 additions & 2 deletions .github/actions/cdn-bump-version/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,22 @@ inputs:
runs:
using: composite
steps:
- name: Upload version file
- name: Prepare Upload Folder
shell: bash
run: |
mkdir -p upload
echo "${{ inputs.version }}" >> upload/version-${{ inputs.release-channel }}.txt
sshpass -p "${{ inputs.bunny-stor-password }}" scp -v -r upload/* ${{ inputs.bunny-stor-username }}@${{ inputs.bunny-stor-hostname }}:/
- name: Upload version file
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: "/"
local-path: "upload"
sync: "full"

- name: Purge CDN cache
shell: bash
Expand Down
14 changes: 12 additions & 2 deletions .github/actions/cdn-upload-firmware/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,20 @@ runs:
find . -type f -name '*.bin' -exec md5sum {} \; > hashes.md5.txt
find . -type f -name '*.bin' -exec sha256sum {} \; > hashes.sha256.txt
- name: Upload artifacts to CDN
- name: Prepare Upload Folder
shell: bash
run: |
mkdir -p upload
mv *.bin upload/
mv hashes.*.txt upload/
sshpass -p "${{ inputs.bunny-stor-password }}" scp -r upload/ ${{ inputs.bunny-stor-username }}@${{ inputs.bunny-stor-hostname }}:/${{ inputs.fw-version }}/${{ inputs.board }}
- name: Upload artifacts to CDN
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 cbb0503

Please sign in to comment.