-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Make 'Start-PSBuild' and 'Start-PSPackage' accept a release tag argument #3921
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
build.psm1
Outdated
[string]$Version, | ||
|
||
[Parameter(ParameterSetName = "ReleaseTag")] | ||
[ValidatePattern("^v\d+\.\d+\.\d+-\w+\.\d+$")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The -\w+\.\d+
part should be optional - an official release won't have that part I think.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
True. Wil update the reg expression.
build.psm1
Outdated
|
||
copy files FROM .\src\monad (old location of submodule) TO src/<project> folders | ||
#> | ||
function Copy-MappedFiles { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this belong in a distinct change for another PR? Maybe also removing the json files and other functions like Get-Mappings
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Such clean-ups will help us to move to MSBuild.
Partially fix #3909
Issue Summary
Currently a release build depends on the release tag to be pushed. We need to break this dependency, so that creating the release tag can be made the last step of a release -- do it only if all preparation of the release is done.
Fix
Add a new parameter
-ReleaseTag
toStart-PSBuild
andStart-PSPackage
to allow a release tag to be passed in. When the release tag is specified at the command line, it will override the git commit id retrieved fromgit describe
.Example
Follow-up work
Our VSO build script need to update to somehow accept a release tag value and pass it along when it's specified.