Skip to content

Commit

Permalink
Debug release assets even further
Browse files Browse the repository at this point in the history
  • Loading branch information
janekbaraniewski committed Apr 29, 2024
1 parent e9c0b75 commit 33874e2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,18 +99,18 @@ jobs:
- name: debug upload url
run:
echo "${{ steps.create_release.outputs.upload_url }}"
ls -la artifacts

- name: Upload Release Assets
run: |
for file in artifacts/*; do
if [ -s "$file" ]; then
echo "Uploading $file"
# Extract the correct URL by removing the unnecessary template part
UPLOAD_URL="${{ steps.create_release.outputs.upload_url }}"
UPLOAD_URL="${UPLOAD_URL%\{*}" # Removes {?name,label}
FILE_NAME=$(basename "$file")
curl -X POST \
curl -X POST -vvv \
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-H "Content-Type: multipart/form-data" \
-F "file=@$file;type=$(file -b --mime-type $file)" \
Expand All @@ -121,7 +121,6 @@ jobs:
fi
done
container-image:
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 33874e2

Please sign in to comment.