deploying to Github releases with custom description
Hi all,
I'm relatively new to Appveyor.
I'm setting up our project to deploy to Github releases. I want to be able to include a custom description with each push, containing release notes.
My idea is to include a file in the repo that has the text of the description, then include that file as part of the request to the github releases api.
How can I go about doing this? Do I need a deploy script? If so, how would I do that?
I want to deploy on tagged commits.
Thanks!
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
1 Posted by jfayre on 15 Oct, 2021 04:43 PM
As an update to this, I got things partially working with a script that was posted on the forum a while back. My problem now is with the description file. The description file contains several lines, formatted using Markdown, which I believe is supposed to work. In my script, I'm doing the following to pull in the description:
$description = Get-Content c:\projects\appveyor-test\changes.md -Raw
However, I'm getting an error from the github api that says the description is null.
If I pass one line of description in quotes, it works.
I'm attaching my appveyor.yml file.
Thanks!
Support Staff 2 Posted by Feodor Fitsner on 15 Oct, 2021 06:34 PM
Try passing hard-coded multi-line value?
Feodor Fitsner closed this discussion on 15 Dec, 2021 09:02 PM.