Github Release Deployment

Daniel Häfele's Avatar

Daniel Häfele

18 Dec, 2014 03:23 PM

Hello guys,

I've got GitHub Release Deployment setup in my project, and thus far, it's working great.
I use it so that for every commit, I create a new build, and a new release on github.
For the github release a new tag and release is automatically created.

My question is:
Is there any way I can change the name for that tag and release?

  1. Support Staff 1 Posted by Feodor Fitsner on 18 Dec, 2014 05:39 PM

    Feodor Fitsner's Avatar

    What would you like to put there?

  2. 2 Posted by Daniel Häfele on 18 Dec, 2014 05:41 PM

    Daniel Häfele's Avatar

    Something more interesting than just "0.0.123".
    In my case, I would like to have the format "v0.0.123" or even "Build v0.0.123".

  3. Support Staff 3 Posted by Feodor Fitsner on 18 Dec, 2014 05:45 PM

    Feodor Fitsner's Avatar

    I see, make sense. Basically, it would be great to have some format string for that, kind of Build v$(appveyor_build_version), right?

  4. 4 Posted by Daniel Häfele on 18 Dec, 2014 05:46 PM

    Daniel Häfele's Avatar

    Now we're on the same table! =)
    This is exactly what I thought about.

  5. Support Staff 5 Posted by Feodor Fitsner on 18 Dec, 2014 05:49 PM

    Feodor Fitsner's Avatar

    OK, that's an easy improvement - will deploy this week :)

  6. 6 Posted by Daniel Häfele on 18 Dec, 2014 05:53 PM

    Daniel Häfele's Avatar

    Amazing =)

    Let me tell you, I just recently started fiddling around with AppVeyor, and everytime I have a question, you're around and help me within a second, that's amazing!

    Love that customer service.

  7. Support Staff 7 Posted by Feodor Fitsner on 20 Dec, 2014 04:42 AM

    Feodor Fitsner's Avatar

    It's been deployed: http://www.appveyor.com/docs/deployment/github#provider-settings - there is a new release setting.

  8. 8 Posted by haefele on 20 Dec, 2014 12:25 PM

    haefele's Avatar

    Just had a little bit of trouble with it, because you can't have spaces
    in it (GitHub doesn't allow it), so I just got the following error
    message in my log:
    Error creating GitHub release: Response status code does not indicate
    success: 422 (Unprocessable Entity).

    Just replacing the space in my release string with a dash, made it work.

    Thanks!

  9. Support Staff 9 Posted by Feodor Fitsner on 20 Dec, 2014 11:04 PM

    Feodor Fitsner's Avatar

    Yeah, will add that into documentation.

  10. 10 Posted by martin.costello... on 23 Dec, 2014 07:13 PM

    martin.costello1's Avatar

    It would be worth adding to the documentation that the lack of support for spaces is a GitHub constraint, rather than an AppVeyor one. Then I wouldn't have gone searching for why with the aim to ask you for support to do so :)

    As I'll be creating a draft release anyway so I can edit the release notes before I publish the release, I'll just edit then name at that point.

  11. 11 Posted by martin.costello... on 23 Dec, 2014 07:15 PM

    martin.costello1's Avatar

    And a second point I just realised, before I white space restriction in the documentation, I'd put my draft yml through the new validator and I wasn't warned that spaces were present in the release name.

    It would be nice for the yml validator to check this and warn the user.

  12. Support Staff 12 Posted by Feodor Fitsner on 23 Dec, 2014 07:23 PM

    Feodor Fitsner's Avatar

    But there is a warning in docs: http://www.appveyor.com/docs/deployment/github#provider-settings ?

    Pushing validator that far is hard - right now it's just syntax/schema validation, values is another thing (though it's doable of course) :)

  13. 13 Posted by martin.costello... on 23 Dec, 2014 07:28 PM

    martin.costello1's Avatar

    I meant more that if you clarified that it's a GitHub requirement, people wouldn't then be tempted to ask you to make a change to support it. Had I not found this thread, that's what I would have done as all my existing manually-created releases have spaces in the names.

    That's fair regarding the validator though, just a suggestion :)

  14. Support Staff 14 Posted by Feodor Fitsner on 23 Dec, 2014 07:29 PM

    Feodor Fitsner's Avatar

    I got it. Will add a note.

  15. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:52 AM.

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