From da387feb9082f3f4431a6af72315d0656b361ff2 Mon Sep 17 00:00:00 2001 From: Leonardo Merza Date: Thu, 7 Dec 2023 22:14:22 -0500 Subject: [PATCH] lock --- .github/workflows/deploy.yaml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 19b60c6..04f8290 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -63,14 +63,16 @@ jobs: - name: Upload Release Asset run: | - for file in ${{ steps.list_files.outputs.files }} - do + for file in dist/*; do + [[ -f "$file" ]] || continue # Skip if not a file + echo "Uploading $file..." curl \ -X POST \ -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ - -H "Content-Type: $(file -b --mime-type $file)" \ - --data-binary @$file \ - "${{ steps.create_release.outputs.upload_url }}?name=$(basename $file)" + -H "Content-Type: $(file -b --mime-type "$file")" \ + --data-binary @"$file" \ + "${{ steps.create_release.outputs.upload_url }}?name=$(basename "$file")" + echo "" # New line for clarity in logs done env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}