Bump minor version after release build

jeavon's Avatar

jeavon

15 Mar, 2015 06:04 PM

I would like to update the minor version number in appveyor.yml and commit it back to GitHub only when a build is considered a release build.
To determine if a build is a release I use both branch name and appveyor_repo_tag. I'm currently thinking I need to create a simple console app or PS script to read and update appveyour.yml to do this, but has anyone done this before, if so how?

Thanks!

  1. Support Staff 1 Posted by Feodor Fitsner on 16 Mar, 2015 06:16 AM

    Feodor Fitsner's Avatar

    I'd go with PowerShell approach. Also, you can check this article about how to push to git during the build: http://www.appveyor.com/docs/how-to/git-push

  2. 2 Posted by gep13 on 17 Mar, 2015 07:05 AM

    gep13's Avatar

    Jeavon,

    As a suggestion, you might want to think about using a tool like GitVersion, which can calculate your current version number, based on the state of your repository:

    https://github.com/Particularlabs/gitversion

    This uses git tags to control the "next" release number, and there are techniques for bumping the version number based on commit messages.

    This means that the "state" of your repository directly controls the version number, so you don't have to worry about maintaining that in a separate file. I am now using GitVersion on two OSS projects, as well as internally.

    Gary

  3. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:54 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