upload
All checks were successful
Build and Release / build (push) Successful in 3m26s

This commit is contained in:
2026-05-17 02:35:53 -05:00
parent 8a4eea282f
commit 7250ec8c58

View File

@@ -44,6 +44,17 @@ jobs:
shell: powershell shell: powershell
run: | run: |
$releaseId = "${{ steps.create_release.outputs.release_id }}" $releaseId = "${{ steps.create_release.outputs.release_id }}"
$filePath = "target\release\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" $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
& curl.exe -X POST -H "Authorization: token ${{ secrets.RELEASE_TOKEN }}" -F "attachment=@`"$filePath`"" "$uri"