Skip to content

Commit

Permalink
lock
Browse files Browse the repository at this point in the history
  • Loading branch information
ljmerza committed Dec 8, 2023
1 parent a20fb44 commit da387fe
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit da387fe

Please sign in to comment.