Bump minor version after release build
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!
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
Support Staff 1 Posted by Feodor Fitsner on 16 Mar, 2015 06:16 AM
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 Posted by gep13 on 17 Mar, 2015 07:05 AM
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
Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:54 AM.