Upload asset to an existing release #48702
Replies: 2 comments 2 replies
-
Just curious: if you're already using |
Beta Was this translation helpful? Give feedback.
-
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Question
Body
Hello!
I have a question related to uploading an asset to an existing release.
I've followed the official docs => https://docs.github.com/en/rest/releases/assets?apiVersion=2022-11-28#upload-a-release-asset, but when I run following command:
gh api --method POST https://uploads.github.com/repos/gutiory/my-repo/releases/RELEASEID/assets\?name\=latest_slides.txt -f '@latest_slides.txt'
I'm having the following error:
field "@latest_slides.txt" requires a value separated by an '=' sign
I've also tried with
gh api --method POST https://uploads.github.com/repos/gutiory/my-repo/releases/RELEASEID/assets\?name\=latest_slides.txt -f 'name=@latest_slides.txt'
But It uploads a file called
latest_slides.txt
with the content@latest_slides.txt
😅Beta Was this translation helpful? Give feedback.
All reactions