Skip to content

Commit

Permalink
feat: handle single files
Browse files Browse the repository at this point in the history
  • Loading branch information
itsyoboieltr committed Jan 14, 2025
1 parent 2d79ed1 commit 5d1f7a2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/actions/upload-s3/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,10 @@ runs:
role-to-assume: ${{ inputs.role-to-assume }}

- name: Upload to S3
run: aws s3 cp ${{ inputs.path }} s3://${{ inputs.s3-bucket }} --recursive
run: |
if [ -d ${{ inputs.path }} ]; then
aws s3 cp ${{ inputs.path }} s3://${{ inputs.s3-bucket }} --recursive
else
aws s3 cp ${{ inputs.path }} s3://${{ inputs.s3-bucket }}
fi
shell: bash

0 comments on commit 5d1f7a2

Please sign in to comment.