ci: publish Gitea release with rustdesk.exe (stable URL for OnRamp)
Build patched rustdesk.exe / Build Win x64 (Sciter UI) (push) Failing after 5m23s
Build patched rustdesk.exe / Build Win x64 (Sciter UI) (push) Failing after 5m23s
This commit is contained in:
@@ -92,3 +92,30 @@ jobs:
|
||||
name: rustdesk-yowie-windows-x64
|
||||
path: target/release/rustdesk.exe
|
||||
retention-days: 30
|
||||
|
||||
- name: Publish Gitea release (stable URL for OnRamp + Apply-YowieRustDeskPatch.sh)
|
||||
shell: powershell
|
||||
env:
|
||||
RELEASE_TOKEN: ${{ secrets.RELEASE_TOKEN }}
|
||||
run: |
|
||||
$tag = "build-$($env:GITHUB_SHA.Substring(0,7))-$(Get-Date -Format yyyyMMddHHmm)"
|
||||
$body = @{
|
||||
tag_name = $tag
|
||||
target_commitish = "yowie-master"
|
||||
name = "Yowie patched rustdesk.exe ($tag)"
|
||||
body = "Automated build from CI. Patch: get_cursor() always emits IDC_ARROW (issue #672). SHA: $env:GITHUB_SHA"
|
||||
draft = $false
|
||||
prerelease = $false
|
||||
} | ConvertTo-Json -Compress
|
||||
$headers = @{ "Authorization" = "token $env:RELEASE_TOKEN"; "Content-Type" = "application/json" }
|
||||
$rel = Invoke-RestMethod -Uri "https://git.yowieit.com/api/v1/repos/infra/rustdesk-yowie/releases" -Method Post -Headers $headers -Body $body
|
||||
Write-Output "release id: $($rel.id), tag: $($rel.tag_name)"
|
||||
# Upload rustdesk.exe as release asset via curl.exe (Win 10+ bundled)
|
||||
# — PowerShell multipart binary handling is fragile; curl.exe -F is bulletproof.
|
||||
$assetUri = "https://git.yowieit.com/api/v1/repos/infra/rustdesk-yowie/releases/$($rel.id)/assets?name=rustdesk.exe"
|
||||
& curl.exe -sk -X POST `
|
||||
-H "Authorization: token $env:RELEASE_TOKEN" `
|
||||
-F "attachment=@target/release/rustdesk.exe" `
|
||||
"$assetUri"
|
||||
Write-Output ""
|
||||
Write-Output "release asset URL: https://git.yowieit.com/infra/rustdesk-yowie/releases/download/$tag/rustdesk.exe"
|
||||
|
||||
Reference in New Issue
Block a user