From 73c59b98e0709a53582123bd5cf50df93e9c93a6 Mon Sep 17 00:00:00 2001 From: Asmir Avdicevic Date: Wed, 24 Apr 2024 13:25:24 +0200 Subject: [PATCH] test --- .github/workflows/release.yml | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1e231cc23a..a17c63e8ab 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -275,15 +275,8 @@ jobs: $ASSETS = "${{ env.ASSET }}".Split(',') foreach ($ASSET in $ASSETS) { $ASSET_NAME = Split-Path $ASSET -Leaf - $contentType = "multipart/form-data" - Invoke-RestMethod ` - -Headers @{ - "Authorization" = "token ${{ secrets.GITHUB_TOKEN }}" - "Content-Type" = $contentType - } ` - -InFile $ASSET ` - -Method Post ` - -Uri "${{ 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 } \ No newline at end of file