deploying to Github releases with custom description

jfayre's Avatar


15 Oct, 2021 02:32 PM

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.

  1. 1 Posted by jfayre on 15 Oct, 2021 04:43 PM

    jfayre's Avatar

    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\ -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.

  2. Support Staff 2 Posted by Feodor Fitsner on 15 Oct, 2021 06:34 PM

    Feodor Fitsner's Avatar

    Try passing hard-coded multi-line value?

  3. Feodor Fitsner closed this discussion on 15 Dec, 2021 09:02 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? 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

Recent Discussions

27 Jan, 2023 08:06 PM
27 Jan, 2023 08:05 PM
25 Jan, 2023 03:23 PM
25 Jan, 2023 03:22 PM
23 Jan, 2023 03:29 PM