From 416953f0715e023483df01bd47f20ce3f8650618 Mon Sep 17 00:00:00 2001 From: Juan Hernandez Date: Fri, 24 Sep 2021 11:03:25 +0200 Subject: [PATCH] Fix publish release action The action that publishes releases was uploading artifacts using the `--data` option of the `curl` tool. That results in processing them as ASCII and limits the size to approximately 4 MiB. The end result is that the uploaded binaries don't work. This patch fixes that using the `--data-binary` option instead. Signed-off-by: Juan Hernandez --- .github/workflows/publish-release.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-release.yaml b/.github/workflows/publish-release.yaml index 8e5b0d1..7928826 100644 --- a/.github/workflows/publish-release.yaml +++ b/.github/workflows/publish-release.yaml @@ -87,7 +87,7 @@ jobs: --header "Content-Type: application/json" \ --header "Accept: application/json" \ --url "https://api.github.com/repos/${{ github.repository }}/releases" \ - --data @request.json \ + --data-binary @request.json \ --output response.json \ --fail @@ -103,7 +103,7 @@ jobs: --header "Content-Type: application/octect-stream" \ --header "Accept: application/json" \ --url "https://uploads.github.com/repos/${{ github.repository }}/releases/${id}/assets?name=${file}" \ - --data "@assets/${file}" \ + --data-binary "@assets/${file}" \ --output response.json \ --fail done