From b45939ec0c57c712b5ed6ce966b3691b7dda8058 Mon Sep 17 00:00:00 2001 From: Casey Vega Date: Tue, 15 Oct 2024 10:12:20 -0700 Subject: [PATCH] Update release.yml --- .github/workflows/release.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 42d3f0c..370c9fd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -60,6 +60,8 @@ jobs: curl -X POST \ -H "Authorization: token $GITHUB_TOKEN" \ -H "Content-Type: application/octet-stream" \ - --data-binary @"large_file.bin" \ - "${{ steps.create_release.outputs.upload_url }}?name=$asset_name" + -H "Content-Length: $(stat -c%s large_file.bin)" \ + --data-binary @- \ + "${{ steps.create_release.outputs.upload_url }}?name=$asset_name" \ + < large_file.bin done