Compare commits
No commits in common. "main" and "v1.2.0-beta.1" have entirely different histories.
main
...
v1.2.0-bet
1 changed files with 4 additions and 6 deletions
|
|
@ -206,13 +206,11 @@ jobs:
|
||||||
-ContentType 'application/json' -Body $body
|
-ContentType 'application/json' -Body $body
|
||||||
}
|
}
|
||||||
|
|
||||||
# Upload the MSI as an asset. Must be POST multipart/form-data —
|
# Upload the MSI as an asset.
|
||||||
# curl's --upload-file does a PUT, which Forgejo answers with 405
|
|
||||||
# (verified against Forgejo 2026-07-06 while shipping 1.2.0-beta.1).
|
|
||||||
$uploadUri = "$env:FORGE_API/releases/$($release.id)/assets?name=$env:MSI_NAME"
|
$uploadUri = "$env:FORGE_API/releases/$($release.id)/assets?name=$env:MSI_NAME"
|
||||||
curl.exe -fSL -X POST `
|
curl.exe -fSL `
|
||||||
-H "Authorization: token $env:FORGE_TOKEN" `
|
-H "Authorization: token $env:FORGE_TOKEN" `
|
||||||
-F "attachment=@$env:MSI_PATH" `
|
-H "Content-Type: application/octet-stream" `
|
||||||
|
--upload-file "$env:MSI_PATH" `
|
||||||
"$uploadUri"
|
"$uploadUri"
|
||||||
if ($LASTEXITCODE -ne 0) { throw "asset upload failed (curl exit $LASTEXITCODE)" }
|
|
||||||
Write-Host "Asset $env:MSI_NAME attached to release $env:TAG."
|
Write-Host "Asset $env:MSI_NAME attached to release $env:TAG."
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue