Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 7250ec8c58 | |||
| 8a4eea282f |
@@ -44,9 +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
|
||||||
curl.exe -v`
|
|
||||||
-X POST `
|
Write-Host "Working dir: $(Get-Location)"
|
||||||
-H "Authorization: token ${{ secrets.RELEASE_TOKEN }}" `
|
Write-Host "Release ID: $releaseId"
|
||||||
-F "attachment=@$filePath" `
|
Write-Host "File: $filePath"
|
||||||
"https://gitea.whitlocktech.com/api/v1/repos/whitlocktech/tickr/releases/$releaseId/assets?name=tickr.exe"
|
|
||||||
|
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"
|
||||||
Reference in New Issue
Block a user