Update the README.md during the release process

This commit is contained in:
Philippe Miossec
2013-11-08 20:28:36 +01:00
parent 69b91be742
commit ddae4573c1
2 changed files with 4 additions and 3 deletions
+3
View File
@@ -28,6 +28,7 @@
<Target Name="MSBuildCommunityTasks" DependsOnTargets="RestorePackages" />
<UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.TemplateFile" />
<UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Zip" />
<UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.FileUpdate" />
<Target Name="Help">
<ReadLinesFromFile File="Releasing.md">
@@ -60,6 +61,8 @@
<Error Text="You should specify a version number!" Condition="'$(Version)' == ''" />
<WriteLinesToFile File="$(VersionFilePath)" Lines="partial class GitTfsProperties ; { ; public const string Version = %22$(Version)%22%3B ; }" Overwrite="true" Encoding="ASCII"/>
<Exec Command="git add $(VersionFilePath)" />
<FileUpdate Files="README.md" Regex="The most recent version is __.*__\." ReplacementText="The most recent version is __$(Version)__." />
<Exec Command="git add README.md" />
<Exec Command="git commit -m v$(Version)" />
</Target>
+1 -3
View File
@@ -13,8 +13,6 @@ Normally, you should do this:
msbuild Release.proj /t:Release /p:Version=X.Y.Z /p:User="login:password"
3. Update [the README.md](https://github.com/git-tfs/git-tfs/edit/master/README.md).
4. Build the chocolatey package. (For this to work, you need to [set an API key](https://github.com/chocolatey/chocolatey/wiki/CommandsPush#note-to-use-this-command-you-must-have-your-api-key-saved-for-chocolateyorg-or-the-source-you-want-to-push-to).)
3. Build the chocolatey package. (For this to work, you need to [set an API key](https://github.com/chocolatey/chocolatey/wiki/CommandsPush#note-to-use-this-command-you-must-have-your-api-key-saved-for-chocolateyorg-or-the-source-you-want-to-push-to).)
msbuild Release.proj /t:Chocolatey /p:Version=X.Y.Z /p:DownloadUrl=https://whatever/path/to/GitTfs-X.Y.Z.zip