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 a9fa815 commit 73c59b9
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 73c59b9

Please sign in to comment.