Compare commits

..

No commits in common. "main" and "v1.2.0-beta.1" have entirely different histories.

View file

@ -206,13 +206,11 @@ jobs:
-ContentType 'application/json' -Body $body
}
# Upload the MSI as an asset. Must be POST multipart/form-data —
# 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).
# Upload the MSI as an asset.
$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" `
-F "attachment=@$env:MSI_PATH" `
-H "Content-Type: application/octet-stream" `
--upload-file "$env:MSI_PATH" `
"$uploadUri"
if ($LASTEXITCODE -ne 0) { throw "asset upload failed (curl exit $LASTEXITCODE)" }
Write-Host "Asset $env:MSI_NAME attached to release $env:TAG."