Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| ec9cf435ca | |||
| 580330b99e | |||
| d32fa5c91f | |||
| acdeadb06a |
@@ -38,19 +38,15 @@ jobs:
|
||||
} `
|
||||
-Body $body
|
||||
|
||||
echo "release_id=$($response.id)" >> $env:GITHUB_OUTPUT
|
||||
"release_id=$($response.id)" | Out-File -FilePath $env:GITHUB_OUTPUT -Encoding utf8 -Append
|
||||
|
||||
- name: Upload binary asset
|
||||
shell: powershell
|
||||
run: |
|
||||
$releaseId = "${{ steps.create_release.outputs.release_id }}"
|
||||
$filePath = "target\release\tickr.exe"
|
||||
|
||||
Invoke-RestMethod `
|
||||
-Uri "https://gitea.whitlocktech.com/api/v1/repos/whitlocktech/tickr/releases/$releaseId/assets?name=tickr.exe" `
|
||||
-Method Post `
|
||||
-Headers @{
|
||||
Authorization = "token ${{ secrets.RELEASE_TOKEN }}"
|
||||
} `
|
||||
-InFile $filePath `
|
||||
-ContentType "application/octet-stream"
|
||||
curl.exe `
|
||||
-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"
|
||||
Reference in New Issue
Block a user