Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| d63ce05d83 | |||
| ec9cf435ca | |||
| 580330b99e | |||
| d32fa5c91f | |||
| acdeadb06a |
@@ -38,19 +38,15 @@ jobs:
|
|||||||
} `
|
} `
|
||||||
-Body $body
|
-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
|
- name: Upload binary asset
|
||||||
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 = "target\release\tickr.exe"
|
||||||
|
curl.exe -v`
|
||||||
Invoke-RestMethod `
|
-X POST `
|
||||||
-Uri "https://gitea.whitlocktech.com/api/v1/repos/whitlocktech/tickr/releases/$releaseId/assets?name=tickr.exe" `
|
-H "Authorization: token ${{ secrets.RELEASE_TOKEN }}" `
|
||||||
-Method Post `
|
-F "attachment=@$filePath" `
|
||||||
-Headers @{
|
"https://gitea.whitlocktech.com/api/v1/repos/whitlocktech/tickr/releases/$releaseId/assets?name=tickr.exe"
|
||||||
Authorization = "token ${{ secrets.RELEASE_TOKEN }}"
|
|
||||||
} `
|
|
||||||
-InFile $filePath `
|
|
||||||
-ContentType "application/octet-stream"
|
|
||||||
Reference in New Issue
Block a user