3 Commits

Author SHA1 Message Date
c682087de8 t1
All checks were successful
Build and Release / build (push) Successful in 3m24s
2026-05-17 02:45:09 -05:00
7250ec8c58 upload
All checks were successful
Build and Release / build (push) Successful in 3m26s
2026-05-17 02:35:53 -05:00
8a4eea282f upload fix 2026-05-17 02:32:51 -05:00

View File

@@ -38,15 +38,25 @@ jobs:
} `
-Body $body
"release_id=$($response.id)" | Out-File -FilePath $env:GITHUB_OUTPUT -Encoding utf8 -Append
$releaseId = $response.id
Write-Host "Created release ID: $releaseId"
Add-Content -Path $env:GITHUB_OUTPUT -Value "release_id=$releaseId"
- name: Upload binary asset
shell: powershell
run: |
$releaseId = "${{ steps.create_release.outputs.release_id }}"
$filePath = "target\release\tickr.exe"
curl.exe -v`
-X POST `
-H "Authorization: token ${{ secrets.RELEASE_TOKEN }}" `
-F "attachment=@$filePath" `
"https://gitea.whitlocktech.com/api/v1/repos/whitlocktech/tickr/releases/$releaseId/assets?name=tickr.exe"
$filePath = (Resolve-Path "target\release\tickr.exe").Path
Write-Host "Working dir: $(Get-Location)"
Write-Host "Release ID: $releaseId"
Write-Host "File: $filePath"
if (!(Test-Path $filePath)) {
Write-Error "File not found: $filePath"
exit 1
}
$uri = "https://gitea.whitlocktech.com/api/v1/repos/whitlocktech/tickr/releases/$releaseId/assets?name=tickr.exe"
& curl.exe -X POST -H "Authorization: token ${{ secrets.RELEASE_TOKEN }}" -F "attachment=@`"$filePath`"" "$uri"