Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Arqu committed Apr 24, 2024
1 parent 269d26e commit 785d86d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 785d86d

Please sign in to comment.