From 785d86da67173c035cea92b61114af274d26aa37 Mon Sep 17 00:00:00 2001 From: Asmir Avdicevic Date: Wed, 24 Apr 2024 14:24:51 +0200 Subject: [PATCH] test --- .github/workflows/release.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index df37595e48..cc6ec9daf1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -276,8 +276,12 @@ jobs: foreach ($ASSET in $ASSETS) { $ASSET_NAME = Split-Path $ASSET -Leaf $uploadUrl = "${{ needs.create-release.outputs.upload_url }}=$ASSET_NAME" - $command = 'curl -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" -H "Content-Type: multipart/form-data" --data-binary "@' + $ASSET + '" ' + $uploadUrl - Invoke-Expression $command + $headers = @{ + "Authorization" = "token ${{ secrets.GITHUB_TOKEN }}" + "Content-Type" = "application/octet-stream" + } + $fileContent = Get-Content -Path $ASSET -Raw + Invoke-WebRequest -Uri $uploadUrl -Headers $headers -InFile $ASSET -Method Post } \ No newline at end of file